public function testFilterByPath() { $this->createPage('More Fun', '/test-page-1/foobler'); $this->list->filterByPath('/test-page-1'); $totalResults = $this->list->getTotalResults(); $this->assertEquals(2, $totalResults); $nl = new \Concrete\Core\Page\PageList(); $nl->ignorePermissions(); $nl->filterbyPath('/test-page-1', false); $pagination = $nl->getPagination(); $this->assertEquals(1, $pagination->getNBResults()); }