Ejemplo n.º 1
0
 /**
  * @covers BackBee\NestedNode\Page::setSection()
  */
 public function testSetSection()
 {
     $section = new Section('new_section');
     $section->setLevel(10);
     $this->page->setSection($section);
     $this->assertNull($this->page->getMainSection());
     $this->assertEquals($section, $this->page->getSection());
     $this->assertEquals(1, $this->page->getPosition());
     $this->assertEquals(11, $this->page->getLevel());
 }