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); }
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')); }