setUpBeforeClass() public static méthode

Setups test user, environment and API key
public static setUpBeforeClass ( )
Exemple #1
0
 /**
  * Add test environment
  *
  * {@inheritdoc}
  * @see ApiTestCase::setUpBeforeClass()
  */
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     static::$data = [static::$testEnvId => []];
     if (empty(static::$userSpec)) {
         static::$userSpec = new SpecManager(self::$apiVersion, 'user');
     }
     if (empty(static::$accountSpec)) {
         static::$accountSpec = new SpecManager(self::$apiVersion, 'account');
     }
 }
Exemple #2
0
 /**
  * Add test environment
  *
  * {@inheritdoc}
  * @see ApiTestCase::setUpBeforeClass()
  */
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     static::$data = [static::$testEnvId => []];
 }