public function testAuthenticateNoUsername() { $request = new Request('posts/index'); $request->data = ['password' => 'foobar']; $this->assertFalse($this->auth->authenticate($request, $this->response)); }