/** * Tests */ public function testShouldDisplayAuthView() { $request = new NeechyRequest(); $page = Page::find_by_title('logout'); $handler = new AuthHandler($request, $page); $response = $handler->handle(); $this->assertEquals(200, $response->status); $this->assertContains(sprintf('<button class="%s" type="submit">Sign in</button>', 'btn btn-lg btn-primary btn-block'), $response->body); $this->assertContains(sprintf('<button class="%s" type="submit">Sign up</button>', 'btn btn-lg btn-primary btn-block'), $response->body); }