__construct() публичный Метод

public __construct ( $name = null, $data = [], $dataName = null )
Пример #1
0
 /**
  * {@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');
     }
 }
Пример #2
0
 public function __construct($name = null, $data = [], $dataName = null)
 {
     parent::__construct($name, $data, $dataName);
     static::$apiController = new FarmRoles();
     $this->uuid = uniqid($this->getTestName());
 }
Пример #3
0
 public function __construct($name = null, $data = [], $dataName = null)
 {
     parent::__construct($name, $data, $dataName);
     $this->uuid = uniqid($this->getTestName());
 }
Пример #4
0
 /**
  * {@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;
     }
 }
Пример #5
0
 /**
  * {@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');
 }