publicfunctiontestAjaxViewWithEmptyArguments(){ $request = newRequest(); $request->request->set('view_name', 'test_view'); $request->request->set('view_display_id', 'page_1'); // Simulate a request that has a second, empty argument.
$request->request->set('view_args', 'arg1/');
$manager = $this->createManager([$authenticator]); $this->assertNull($manager->authenticateRequest($this->request)); $this->assertTrue($listenerCalled, 'The AuthenticationTokenCreatedEvent listener is not called'); }