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

testLatestactivity() public method

public testLatestactivity ( )
    public function testLatestactivity()
    {
        $this->setRequest(Request::create('/async/latestactivity'));
        $response = $this->controller()->latestActivity();
        $this->assertTrue($response instanceof TemplateResponse);
        $this->assertSame('@bolt/components/panel-activity.twig', $response->getTemplate()->getTemplateName());
        $this->assertSame(Response::HTTP_OK, $response->getStatusCode());
    }