public function test() { $this->assertControllerWorks(WebServerTestController::class); $this->assertPageContains(EasyRouting::getUri(WebServerTestController::class, 'index'), WebServerTestController::TEXT); }
public function test() { $uri = EasyRouting::getUri(WebServerTestController::class, 'layoutDemo'); $this->assertPageContains($uri, 'Layout is ok'); $this->assertPageContains($uri, 'Layout test'); }