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(); }
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'); }
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()); }