Searches for the equivalent of a specific NavigationItem.
public find ( |
||
$navigationItem | The NavigationItem to look for | |
리턴 | The item if it is found, otherwise false |
public function testSearch() { $this->assertEquals('Globals', $this->item2->find(new NavigationItem('Globals'))->getName()); $this->assertNull($this->item1->find(new NavigationItem('Nothing'))); }