Scalr\Tests\Functional\Api\V2\ApiTest::setUp PHP Method

setUp() protected method

See also: ApiTestCase::setUp()
protected setUp ( )
    protected function setUp()
    {
        parent::setUp();
        switch ($this->getName(false)) {
            case 'testGetEndpoint':
                if (!static::$user->canManageAcl()) {
                    $this->setUserType(User::TYPE_ACCOUNT_ADMIN);
                }
                $this->setTestAcl(ApiFixture::ACL_FULL_ACCESS);
                break;
            case 'testApi':
                if (static::$user->canManageAcl()) {
                    $this->markTestIncomplete("Specified test user has always full access. It's not valid for this test");
                }
                break;
        }
    }