/** * @covers \BackBee\NestedNode\Repository\PageQueryBuilder::getSectionAlias */ public function testGetSectionAlias() { $q = $this->repository->createQueryBuilder('p'); $this->assertEquals(0, count($q->getDQLPart('join'))); $this->assertEquals('p_s', $q->getSectionAlias()); $this->assertEquals(1, count($q->getDQLPart('join'))); }