예제 #1
0
 /**
  * @depends testCreateTag
  * @depends testAccountTag
  * @depends testContactTag
  * @depends testUserTag
  * @param $tagName
  */
 public function testTagSearch($tagName)
 {
     $this->login();
     $tagSearch = new Search($this);
     $result = $tagSearch->search('New_' . $tagName)->submit()->select('New_' . $tagName)->assertEntity('Users', 1)->assertEntity('Contacts', 1)->assertEntity('Accounts', 1);
     $this->assertNotEmpty($result);
 }
예제 #2
0
 public function testSearchResult()
 {
     $this->login();
     $search = new Search($this);
     $result = $search->search('admin')->submit()->assertTitle('admin - Search Results')->result('John Doe');
     $this->assertNotEmpty($result);
 }