TinyAuth\Test\TestCase\Controller\Component\AuthComponentTest::testValid PHP Метод

testValid() публичный Метод

public testValid ( ) : void
Результат void
    public function testValid()
    {
        $request = new Request(['params' => ['controller' => 'Users', 'action' => 'view', 'plugin' => null, '_ext' => null, 'pass' => [1]]]);
        $controller = $this->getControllerMock($request);
        $registry = new ComponentRegistry($controller);
        $this->AuthComponent = new AuthComponent($registry, $this->componentConfig);
        $config = [];
        $this->AuthComponent->initialize($config);
        $event = new Event('Controller.startup', $controller);
        $response = $this->AuthComponent->startup($event);
        $this->assertNull($response);
    }