Neos\FluidAdaptor\Tests\Functional\Core\WidgetTest::ifIncludedInATemplateTheWidgetReturnsResultOfItsOwnIndexAction PHP Method

ifIncludedInATemplateTheWidgetReturnsResultOfItsOwnIndexAction() public method

This sends a request to the helper controller (AjaxTestController) which includes the AJAX widget in its template. The indexAction renders that template which in turn lets the "someAjax" widget call the indexAction of its own controller (SomeAjaxController).
    public function ifIncludedInATemplateTheWidgetReturnsResultOfItsOwnIndexAction()
    {
        $response = $this->browser->request('http://localhost/test/widget/ajaxtest');
        list($confirmation, ) = explode(chr(10), $response->getContent());
        $this->assertSame('SomeAjaxController::indexAction()', $confirmation);
    }