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); }
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'); }
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()); }
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(); }
public function tearDown() { parent::tearDown(); $this->cleanStaticApplicationCacheFolder(); }
public function tearDown() { parent::tearDown(); \UsersLogin::logout(); }
public function tearDown() { $this->dropTable(); // parent::tearDown(); }
public function tearDown() { parent::tearDown(); $this->cleanUpSchemes(); }
public function tearDown() { parent::tearDown(); }
public function setUp() { parent::setUp(); include __DIR__ . DIRECTORY_SEPARATOR . 'fixtures.php'; }