public function test_logout() { $user = factory(User::class)->create(); $auth = App::make(AuthService::class); $logged = $auth->login($user); $this->assertTrue(isset($logged['token'])); $this->assertTrue($auth->logout($logged['token'])); }