public function PsrResponseSubscriberTest::testDoesNotConvertControllerResult in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/EventSubscriber/PsrResponseSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PsrResponseSubscriberTest::testDoesNotConvertControllerResult()
Tests altering and finished event.
@covers ::onKernelView
File
- core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ PsrResponseSubscriberTest.php, line 68 - Contains \Drupal\Tests\Core\EventSubscriber\PsrResponseSubscriberTest.
Class
- PsrResponseSubscriberTest
- @coversDefaultClass \Drupal\Core\EventSubscriber\PsrResponseSubscriber @group EventSubscriber
Namespace
Drupal\Tests\Core\EventSubscriberCode
public function testDoesNotConvertControllerResult() {
$event = $this
->createEventMock([]);
$event
->expects($this
->never())
->method('setResponse');
$this->psrResponseSubscriber
->onKernelView($event);
$event = $this
->createEventMock(NULL);
$event
->expects($this
->never())
->method('setResponse');
$this->psrResponseSubscriber
->onKernelView($event);
}