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 getDependentTestModelClassNames()
 {
     $ownDependencies = array('WorkflowModelTestItem2', 'WorkflowModelTestItem3', 'WorkflowModelTestItem9');
     return CMap::mergeArray(parent::getDependentTestModelClassNames(), $ownDependencies);
 }
 /**
  * @depends testResolveProcessDateTimeByWorkflowAndModelWithNullDateTime
  * @expectedException ValueForProcessDateTimeIsNullException
  */
 public function testResolveProcessDateTimeByWorkflowAndModelWithPseudoNullDateTime()
 {
     $model = new WorkflowModelTestItem();
     $model->dateTime = '0000-00-00 00:00:00';
     $workflow = WorkflowTriggersUtilBaseTest::makeOnSaveWorkflowAndTimeTriggerForDateOrDateTime('dateTime', 'Is Time For', null, 86400);
     SavedWorkflowsUtil::resolveProcessDateTimeByWorkflowAndModel($workflow, $model);
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     ContactsModule::loadStartingData();
 }