/** * @covers BackBee\NestedNode\Page::isVisible */ public function testIsVisble() { $page = new Page(); $page->setParent($this->page); $this->assertFalse($page->isVisible()); $page->setState(Page::STATE_ONLINE); $this->assertTrue($page->isVisible()); $page->setState(Page::STATE_ONLINE & Page::STATE_HIDDEN); $this->assertFalse($page->isVisible()); }