/** * @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); }
public function testSearchResult() { $this->login(); $search = new Search($this); $result = $search->search('admin')->submit()->assertTitle('admin - Search Results')->result('John Doe'); $this->assertNotEmpty($result); }