X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FUnit%2FController%2FViewAjaxControllerTest.php;fp=web%2Fcore%2Fmodules%2Fviews%2Ftests%2Fsrc%2FUnit%2FController%2FViewAjaxControllerTest.php;h=d65acaab2c8c3b78b8fe6aa4fb963a6b43c81a27;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=a02f098cda73f31f154689c5ced036ef0ea90100;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php b/web/core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php index a02f098cd..d65acaab2 100644 --- a/web/core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php +++ b/web/core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php @@ -74,7 +74,7 @@ class ViewAjaxControllerTest extends UnitTestCase { $this->renderer = $this->getMock('\Drupal\Core\Render\RendererInterface'); $this->renderer->expects($this->any()) ->method('render') - ->will($this->returnCallback(function(array &$elements) { + ->will($this->returnCallback(function (array &$elements) { $elements['#attached'] = []; return isset($elements['#markup']) ? $elements['#markup'] : ''; })); @@ -344,8 +344,7 @@ class ViewAjaxControllerTest extends UnitTestCase { $display_handler->expects($this->never()) ->method('setOption'); $display_handler->expects($this->any()) - ->method('getOption') - ->with('use_ajax') + ->method('ajaxEnabled') ->willReturn($use_ajax); $display_collection = $this->getMockBuilder('Drupal\views\DisplayPluginCollection')