Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294742

LocalTaskManagerTest only works because we mock a non existing method

$
0
0

The LocalTaskManagerTest is only working because of:

    $this->manager = $this
      ->getMockBuilder('Drupal\Core\Menu\LocalTaskManager')
      ->disableOriginalConstructor()
      ->setMethods(array('enforcePluginInterface'))
      ->getMock();

Which means the only method we are mocking is the non existing enforcePluginInterface method.

Let's just create a proper LocalTaskManager to test.


Viewing all articles
Browse latest Browse all 294742

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>