public static function setUpBeforeClass() { parent::setUpBeforeClass(); $super = SecurityTestHelper::createSuperAdmin(); $bobby = UserTestHelper::createBasicUser('bobby'); $sarah = UserTestHelper::createBasicUser('sarah'); self::$superUserId = $super->id; self::$bobbyUserId = $bobby->id; self::$sarahUserId = $sarah->id; }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); $loaded = ContactsModule::loadStartingData(); assert($loaded); // Not Coding Standard $contactStates = ContactState::getByName('New'); self::$newState = $contactStates[0]; $contactStates = ContactState::getByName('In progress'); self::$inProgressState = $contactStates[0]; $contactStates = ContactState::getByName('Recycled'); self::$recycledState = $contactStates[0]; $contactStates = ContactState::getByName('Dead'); self::$deadState = $contactStates[0]; $contactStates = ContactState::getByName('Qualified'); self::$qualifiedState = $contactStates[0]; $contactStates = ContactState::getByName('Customer'); self::$customerState = $contactStates[0]; }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); ContactsModule::loadStartingData(); }