Bolt\Tests\Controller\Async\GeneralTest::testChangeLogRecord PHP Method

testChangeLogRecord() public method

public testChangeLogRecord ( )
    public function testChangeLogRecord()
    {
        $this->setRequest(Request::create('/async/changelog/page/1'));
        $response = $this->controller()->changeLogRecord('pages', 1);
        $this->assertTrue($response instanceof TemplateResponse);
        $this->assertSame('@bolt/components/panel-change-record.twig', $response->getTemplate()->getTemplateName());
        $this->assertSame(Response::HTTP_OK, $response->getStatusCode());
    }