コード例 #1
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());
 }
コード例 #2
0
ファイル: UserTest.php プロジェクト: AntonyAntonio/phpback
 public function testChangePass()
 {
     Scripts::LoginUser('*****@*****.**', 'Gates123');
     $this->url('/home/profile/4');
     $this->byLinkText('Change Password')->click();
     $this->fillFields(array('old' => 'Gates123', 'new' => 'Microsoft123', 'rnew' => 'Microsoft123'));
     $this->byName('changepassform')->submit();
     $this->byLinkText('Log out')->click();
     Scripts::LoginUser('*****@*****.**', 'Microsoft123');
     $this->assertEquals($this->url(), 'http://localhost:8080/home/');
     $this->assertContains('Logged as Bill Gates', $this->byTag('body')->text());
 }