public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     DataDecorator::clearDecoratorClasses();
     DataDecorator::registerDecoratorClass("Rhubarb\\Stem\\Tests\\Fixtures\\ExampleDecorator", "Rhubarb\\Stem\\Tests\\Fixtures\\Example");
     DataDecorator::registerDecoratorClass("Rhubarb\\Stem\\Tests\\Fixtures\\CompanyDecorator", "Rhubarb\\Stem\\Tests\\Fixtures\\Company");
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     Module::registerModule(new UnitTestExceptionModule());
     Module::initialiseModules();
     Log::clearLogs();
     Log::attachLog(self::$log = new UnitTestLog(Log::ERROR_LEVEL));
     ExceptionHandler::enableExceptionTrapping();
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     \Rhubarb\Crown\Encryption\HashProvider::SetHashProviderClassName("Rhubarb\\Crown\\Encryption\\Sha512HashProvider");
     $user = new \Rhubarb\Stem\Tests\Fixtures\User();
     $user->Username = "******";
     $user->Password = '******';
     $user->Active = false;
     $user->save();
     $user = new \Rhubarb\Stem\Tests\Fixtures\User();
     $user->Username = "******";
     $user->Password = '******';
     $user->Active = true;
     // This secret property is used to test the model object is returned correctly.
     $user->SecretProperty = "111222";
     $user->save();
     // This rogue entry is to make sure that we can't login with no username
     // even if there happens to be someone with no username.
     $user = new \Rhubarb\Stem\Tests\Fixtures\User();
     $user->Username = "";
     $user->Password = "";
     $user->save();
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     LayoutModule::enableLayout();
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::$oldEncryptionProvider = EncryptionProvider::setEncryptionProviderClassName('\\Rhubarb\\Crown\\Encryption\\Aes256ComputedKeyEncryptionProvider');
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     SolutionSchema::registerSchema("MySchema", "Rhubarb\\Stem\\Tests\\Fixtures\\UnitTestingSolutionSchema");
 }