Domain\Auth\AuthServiceTest::test_logout PHP Method

test_logout() public method

public test_logout ( )
    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']));
    }