/** * @covers \BackBee\NestedNode\Repository\PageRepository::moveSectionAsSiblingOf * @expectedException \BackBee\Exception\InvalidArgumentException */ public function testMoveSectionAsSiblingOfNonSection() { $section1 = $this->repository->find('section1'); $page1 = $this->repository->find('page1'); $this->repository->moveAsPrevSiblingOf($section1, $page1); }
/** * @covers \BackBee\NestedNode\Repository\PageRepository::moveAsSiblingOf * @expectedException \BackBee\Exception\InvalidArgumentException */ public function testMoveAsSiblingOfRoot() { $section1 = $this->repository->find('section1'); $this->repository->moveAsPrevSiblingOf($section1, $this->root); }