Gc\Mvc\Controller\ActionTest::testOnDispatchWithoutIdentityAndUserLoginRoute PHP Method

testOnDispatchWithoutIdentityAndUserLoginRoute() public method

Test
    public function testOnDispatchWithoutIdentityAndUserLoginRoute()
    {
        $routeMatch = new RouteMatch(array('module' => 'Config', 'controller' => 'UserController', 'action' => 'login'));
        $routeMatch->setMatchedRouteName('config/user/login');
        $this->object->getEvent()->setRouteMatch($routeMatch);
        $this->assertInstanceOf('Zend\\View\\Model\\ViewModel', $this->object->dispatch(Registry::get('Application')->getRequest(), null));
    }