public function testLoopsGetPagePathIndex() { $app = new WebApplication(__DIR__ . "/app", "/", "GET", [], [], [], [], [], FALSE); $loops = $app->getLoops(); $page = new Index(["a"]); $element = new DefaultElement(); $page->offsetSet("aaa", $element); $this->assertSame("a/deeper/aaa", $element->getPagePath()); }
public function testIndexPagePage() { $app = new WebApplication(__DIR__ . "/app", "/"); $loops = $app->getLoops(); $page = new Index(["a"]); $this->assertSame("a/deeper/", $page->getPagePath()); }