Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / views / tests / src / Unit / Plugin / Block / ViewsBlockTest.php
index cbe6adef86baca90e40ba38e3056a29efd7c9144..e7cd98477b33a106e689d952185f04a6fb76556e 100644 (file)
@@ -58,7 +58,8 @@ class ViewsBlockTest extends UnitTestCase {
    * {@inheritdoc}
    */
   protected function setUp() {
-    parent::setUp(); // TODO: Change the autogenerated stub
+    // TODO: Change the autogenerated stub.
+    parent::setUp();
     $condition_plugin_manager = $this->getMock('Drupal\Core\Executable\ExecutableManagerInterface');
     $condition_plugin_manager->expects($this->any())
       ->method('getDefinitions')
@@ -69,7 +70,7 @@ class ViewsBlockTest extends UnitTestCase {
 
     $this->executable = $this->getMockBuilder('Drupal\views\ViewExecutable')
       ->disableOriginalConstructor()
-      ->setMethods(['buildRenderable', 'setDisplay', 'setItemsPerPage'])
+      ->setMethods(['buildRenderable', 'setDisplay', 'setItemsPerPage', 'getShowAdminLinks'])
       ->getMock();
     $this->executable->expects($this->any())
       ->method('setDisplay')
@@ -203,6 +204,8 @@ class ViewsBlockTest extends UnitTestCase {
 namespace Drupal\views\Plugin\Block;
 
 if (!function_exists('views_add_contextual_links')) {
+
   function views_add_contextual_links() {
   }
+
 }