/**
* {@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;
}
}