/** * Test xxxNestedSet::isRoot() as true */ public function testObjectIsRootTrue() { $pp = PagePeer::retrieveRoot(1); $this->assertTrue($pp->isRoot(), 'Node must be root'); }
/** * Test xxxNestedSetPeer::isRoot() as true */ public function testPeerIsRootTrue() { $pp = PagePeer::retrieveRoot(1); $this->assertTrue(PagePeer::isRoot($pp), 'Node must be root'); }