Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     Restorator::restore();
     Helper::setupUsers([['login' => self::RootLogin, 'password' => self::Password, 'rights' => [\CMSAuth::AdministratorRoleName => true]]]);
     \UsersLogin::login(self::RootLogin, self::Password);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     include __DIR__ . DIRECTORY_SEPARATOR . 'import.php';
     ACL::create(self::RightNameFixture, 'Test right name');
     ACL::create(self::SecondRightNameFixture, 'Second right name');
 }
Exemplo n.º 3
0
 public function setup()
 {
     parent::setUp();
     \ACL::create(\CMSAuth::AdministratorRoleName);
     Helper::setupUsers(array(array('login' => self::login, 'password' => self::password, 'rights' => array(\CMSAuth::AdministratorRoleName => true))));
     $user = \UserAccount::getByLogin(self::login);
     \ACL::grant(\CMSAuth::AdministratorRoleName, $user->rights->getEntity());
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     Helper::dbFixture(Job::TableName, array());
     $this->setRunnerTimeout(0);
     Restorator::restore();
     Helper::setupUsers([['login' => self::Login, 'password' => self::Password], ['login' => 'guest', 'password' => self::Password]]);
     $user = \UserAccount::getByLogin(self::Login);
     \ACL::create(\CMSAuth::SystemAdministratorRoleName);
     \ACL::grant(\CMSAuth::SystemAdministratorRoleName, $user->rights->getEntity());
     \UsersLogin::forceLogin($user);
     TestAction::setUp();
 }
Exemplo n.º 5
0
 public function tearDown()
 {
     parent::tearDown();
     $this->cleanStaticApplicationCacheFolder();
 }
Exemplo n.º 6
0
 public function tearDown()
 {
     parent::tearDown();
     \UsersLogin::logout();
 }
Exemplo n.º 7
0
 public function tearDown()
 {
     $this->dropTable();
     //
     parent::tearDown();
 }
Exemplo n.º 8
0
 public function tearDown()
 {
     parent::tearDown();
     $this->cleanUpSchemes();
 }
Exemplo n.º 9
0
 public function tearDown()
 {
     parent::tearDown();
 }
Exemplo n.º 10
0
 public function setUp()
 {
     parent::setUp();
     include __DIR__ . DIRECTORY_SEPARATOR . 'fixtures.php';
 }