diff --git a/core/modules/views/tests/src/Unit/ViewExecutableUnitTest.php b/core/modules/views/tests/src/Unit/ViewExecutableUnitTest.php index 89b7d0a..ecabe3f 100644 --- a/core/modules/views/tests/src/Unit/ViewExecutableUnitTest.php +++ b/core/modules/views/tests/src/Unit/ViewExecutableUnitTest.php @@ -253,14 +253,11 @@ public function testAttachDisplays() { $view->displayHandlers = $display_collection; // Setup the expectations. - $page_display->expects($this->once()) ->method('attachTo') ->with($cloned_view, 'default', $view->element); $view->attachDisplays(); - - } /** diff --git a/core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php b/core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php index 6ed91d7..614aa29 100644 --- a/core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php +++ b/core/modules/views/tests/src/Unit/ViewsHandlerManagerTest.php @@ -55,6 +55,9 @@ public function setUp() { $this->handlerManager = new ViewsHandlerManager('test', new \ArrayObject(array()), $this->viewsData, $cache_backend, $this->moduleHandler); } + /** + * Setups of the plugin factory. + */ protected function setupMockedFactory() { $this->factory = $this->getMock('Drupal\Component\Plugin\Factory\FactoryInterface');