/** * {@inheritdoc} * @see ApiTestCase::setUpBeforeClass() */ 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'); } }
public function __construct($name = null, $data = [], $dataName = null) { parent::__construct($name, $data, $dataName); static::$apiController = new FarmRoles(); $this->uuid = uniqid($this->getTestName()); }
public function __construct($name = null, $data = [], $dataName = null) { parent::__construct($name, $data, $dataName); $this->uuid = uniqid($this->getTestName()); }
/** * {@inheritdoc} * @see ApiTestCase::setUpBeforeClass() */ 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; } }
/** * {@inheritdoc} * @see ApiTestCase::setUpBeforeClass() */ public function __construct($name = null, $data = [], $dataName = null) { parent::__construct($name, $data, $dataName); $this->userSpec = new SpecManager(self::$apiVersion, 'user'); $this->accountSpec = new SpecManager(self::$apiVersion, 'account'); }