loadNodeAndAncestors() public method

public loadNodeAndAncestors ( $uuid, $locale, $webspaceKey = null, $excludeGhost = true, $excludeShadow = true )
示例#1
0
 public function testNodeAndAncestorsExcludedGhosts()
 {
     $data = $this->prepareBigTreeTestData();
     $child = $data[1]->getChildren()[0]->getChildren()[2]->getChildren()[1];
     $result = $this->mapper->loadNodeAndAncestors($child->getUuid(), 'en', 'sulu_io', true);
     $this->assertCount(0, $result);
 }
示例#2
0
 public function testNodeAndAncestorsExcludedGhosts()
 {
     $data = $this->prepareBigTreeTestData();
     $child = $data[1]->getChildren()[0]->getChildren()[2]->getChildren()[1];
     $result = $this->mapper->loadNodeAndAncestors($child->getUuid(), 'en', 'sulu_io', true);
     // at least homepage will be found
     $this->assertCount(1, $result);
     $this->assertEquals('/', $result[0]->getPropertyValue('url'));
 }