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

theGeneratedUriLeadsToASpecificActionOfTheAjaxController() public method

We send a request to this URI and check if the AJAX widget was really invoked.
    public function theGeneratedUriLeadsToASpecificActionOfTheAjaxController()
    {
        $response = $this->browser->request('http://localhost/test/widget/ajaxtest');
        list(, $ajaxWidgetUri) = explode(chr(10), $response->getContent());
        $response = $this->browser->request('http://localhost/' . $ajaxWidgetUri);
        $this->assertSame('SomeAjaxController::ajaxAction("value1", "value2")', trim($response->getContent()));
    }