/** * @covers BackBee\NestedNode\Page::getRootContentSetPosition */ public function testGetRootContentSetPosition() { $column1 = $this->page->getContentSet()->first(); $column2 = $this->page->getContentSet()->last(); $this->assertEquals(0, $this->page->getRootContentSetPosition($column1)); $this->assertEquals(1, $this->page->getRootContentSetPosition($column2)); $this->assertFalse($this->page->getRootContentSetPosition(new ContentSet())); }