X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FUnit%2FEventSubscriber%2FRouteSubscriberTest.php;h=927551f7b58fbeddf99768036b0a600ee3915271;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=c89554a77cd746536d02306197520245fccfce52;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php b/web/core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php index c89554a77..927551f7b 100644 --- a/web/core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php +++ b/web/core/modules/views/tests/src/Unit/EventSubscriber/RouteSubscriberTest.php @@ -101,7 +101,7 @@ class RouteSubscriberTest extends UnitTestCase { // should only call the second display. $display_1->expects($this->once()) ->method('collectRoutes') - ->willReturnCallback(function() use ($collection) { + ->willReturnCallback(function () use ($collection) { $collection->add('views.test_id.page_1', new Route('test_route', ['_controller' => 'Drupal\views\Routing\ViewPageController'])); return ['test_id.page_1' => 'views.test_id.page_1']; }); @@ -111,7 +111,7 @@ class RouteSubscriberTest extends UnitTestCase { $display_2->expects($this->once()) ->method('collectRoutes') - ->willReturnCallback(function() use ($collection) { + ->willReturnCallback(function () use ($collection) { $collection->add('views.test_id.page_2', new Route('test_route', ['_controller' => 'Drupal\views\Routing\ViewPageController'])); return ['test_id.page_2' => 'views.test_id.page_2']; }); @@ -139,8 +139,8 @@ class RouteSubscriberTest extends UnitTestCase { /** * Sets up mocks of Views objects needed for testing. * - * @return array \Drupal\views\Plugin\views\display\DisplayRouterInterface[]|\PHPUnit_Framework_MockObject_MockObject[] - * An array of two mocked view displays + * @return \Drupal\views\Plugin\views\display\DisplayRouterInterface[]|\PHPUnit_Framework_MockObject_MockObject[] + * An array of two mocked view displays. */ protected function setupMocks() { $executable = $this->getMockBuilder('Drupal\views\ViewExecutable')