Beispiel #1
0
 /**
  * @covers BackBee\NestedNode\Page::isScheduled
  */
 public function testIsScheduled()
 {
     $page = new Page();
     $page->setParent($this->page);
     $this->assertFalse($page->isScheduled());
     $page->setPublishing(new \DateTime());
     $page->setArchiving();
     $this->assertTrue($page->isScheduled());
     $page->setPublishing();
     $page->setArchiving(new \DateTime());
     $this->assertTrue($page->isScheduled());
     $page->setPublishing(new \DateTime());
     $page->setArchiving(new \DateTime());
     $this->assertTrue($page->isScheduled());
 }