コード例 #1
0
ファイル: AdminPanelTest.php プロジェクト: bbalet/phpback
 public function testCategoryCreation()
 {
     Scripts::LoginAdmin();
     $this->byLinkText('System Settings')->click();
     $this->byLinkText('Categories')->click();
     $this->fillFields(array('name' => 'Redcat', 'description' => 'Redcat is a category'));
     //TODO: NEED to refactor id's
     //$this->byLinkText('Add Category')->click();
 }
コード例 #2
0
ファイル: AdminPanelTest.php プロジェクト: MindWorp/phpback
 public function testDisableBanUser()
 {
     Scripts::LoginAdmin();
     $this->byLinkText('Users Management')->click();
     $this->byLinkText('Banned List ')->click();
     $this->byLinkText('Disable ban')->click();
     $passdisbann = RedBean::load('users', 3);
     $this->assertEquals($passdisbann->banned, '0');
 }
コード例 #3
0
 public function testDeleteFlagComment()
 {
     Scripts::LoginUser();
     Scripts::CreateComment();
     Scripts::LogoutUser();
     Scripts::LoginAdmin();
     $this->url('/admin/ideas');
     $this->byName('Delete votes')->click();
     $this->assertNotContains('Flagged ', $this->byTag('body')->text());
 }