Ouzo\Tests\ControllerTestCase::assertRenders PHP Метод

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

public assertRenders ( $viewName )
    public function assertRenders($viewName)
    {
        $statusResponse = $this->requestContext()->getCurrentControllerObject()->getStatusResponse();
        $location = $this->requestContext()->getCurrentControllerObject()->getRedirectLocation();
        if ($statusResponse != 'show') {
            $this->fail("Expected render {$viewName} but was {$statusResponse} {$location}");
        }
        $this->assertEquals($viewName, $this->requestContext()->getCurrentControllerObject()->view->getViewName());
    }