function PsrResponseSubscriberTest::testDoesNotConvertControllerResult
Tests altering and finished event.
@covers ::onKernelView
File
-
core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ PsrResponseSubscriberTest.php, line 69
Class
- PsrResponseSubscriberTest
- @coversDefaultClass \Drupal\Core\EventSubscriber\PsrResponseSubscriber[[api-linebreak]] @group EventSubscriber
Namespace
Drupal\Tests\Core\EventSubscriberCode
public function testDoesNotConvertControllerResult() : void {
$event = $this->createEvent([]);
$this->psrResponseSubscriber
->onKernelView($event);
$this->assertNull($event->getResponse());
$event = $this->createEvent(NULL);
$this->psrResponseSubscriber
->onKernelView($event);
$this->assertNull($event->getResponse());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.