PayPal\Test\Functional\Api\BillingPlansFunctionalTest::setupTest PHP Method

setupTest() public method

public setupTest ( $className, $testName )
    public function setupTest($className, $testName)
    {
        $operationString = file_get_contents(__DIR__ . "/../resources/{$className}/{$testName}.json");
        $this->operation = json_decode($operationString, true);
        $this->response = true;
        if (array_key_exists('body', $this->operation['response'])) {
            $this->response = json_encode($this->operation['response']['body']);
        }
        Setup::SetUpForFunctionalTests($this);
    }