Esempio n. 1
0
 public function testDeepGetIsCurrentAncestor()
 {
     $this->addChildWithExternalUrl();
     $this->menu->setCurrentUri('http://php.net');
     $this->gc1->setUri('http://php.net');
     $this->assertFalse($this->pt1->isCurrentAncestor());
     $this->assertTrue($this->menu->isCurrentAncestor());
     $this->assertTrue($this->pt2->isCurrentAncestor());
     $this->assertTrue($this->ch4->isCurrentAncestor());
 }