protected function setUp()
{
parent::setUp();
if (static::isSkippedFunctionalTest()) {
$this->markTestSkipped();
}
if (!\Scalr::getContainer()->config('scalr.system.api.enabled')) {
$this->markTestSkipped('API is not enabled. See scalr.system.api.enabled');
}
}
/** * {@inheritdoc} * @see ApiTestCase::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; } }