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

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

public testValidAnyAction ( ) : void
Результат void
    public function testValidAnyAction()
    {
        $request = new Request(['params' => ['controller' => 'Offers', 'action' => 'index', 'plugin' => 'Extras', '_ext' => null, 'pass' => [1]]]);
        $controller = new OffersController($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);
    }