Eccube\Tests\Application\SecurityTraitTest::testUserWithNoToken PHP Method

testUserWithNoToken() public method

public testUserWithNoToken ( )
    public function testUserWithNoToken()
    {
        $request = Request::create('/');
        $app = $this->createApplication();
        $app->get('/', function () {
            return 'foo';
        });
        $app->handle($request);
        $this->assertNull($app->user());
    }