public function __construct($name = null, $data = [], $dataName = null)
{
parent::__construct($name, $data, $dataName);
if (empty(static::$userSpec)) {
static::$userSpec = new SpecManager(self::$apiVersion, 'user');
}
if (empty(static::$accountSpec)) {
static::$accountSpec = new SpecManager(self::$apiVersion, 'account');
}
if (empty(static::$noAccessAcl)) {
static::$noAccessAcl = $this->getMock('ApiTestAcl', ['hasAccessTo', 'isUserAllowedByEnvironment']);
static::$noAccessAcl->expects($this->any())->method('hasAccessTo')->willReturn(false);
static::$noAccessAcl->expects($this->any())->method('isUserAllowedByEnvironment')->willReturn(false);
static::$noAccessAcl->aclType = ApiFixture::ACL_NO_ACCESS;
}
}