function PsrResponseSubscriberTest::testConvertsControllerResult
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/EventSubscriber/PsrResponseSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PsrResponseSubscriberTest::testConvertsControllerResult()
- 10 core/tests/Drupal/Tests/Core/EventSubscriber/PsrResponseSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PsrResponseSubscriberTest::testConvertsControllerResult()
- 11.x core/tests/Drupal/Tests/Core/EventSubscriber/PsrResponseSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PsrResponseSubscriberTest::testConvertsControllerResult()
Tests altering and finished event.
@covers ::onKernelView
File
-
core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ PsrResponseSubscriberTest.php, line 50
Class
- PsrResponseSubscriberTest
- @coversDefaultClass \Drupal\Core\EventSubscriber\PsrResponseSubscriber @group EventSubscriber
Namespace
Drupal\Tests\Core\EventSubscriberCode
public function testConvertsControllerResult() {
$event = $this->createEventMock($this->createMock('Psr\\Http\\Message\\ResponseInterface'));
$event->expects($this->once())
->method('setResponse')
->with($this->isInstanceOf('Symfony\\Component\\HttpFoundation\\Response'));
$this->psrResponseSubscriber
->onKernelView($event);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.