MDL-49329 admin: Make core_plugin_manager better suited for unit testing
commit361feecdcfefa729c728d80ea3f712708ecf507d
authorDavid Mudrák <david@moodle.com>
Thu, 24 Sep 2015 18:53:04 +0000 (24 20:53 +0200)
committerDavid Mudrák <david@moodle.com>
Thu, 8 Oct 2015 21:32:02 +0000 (8 23:32 +0200)
tree7ee8fa73c23da2a0efdfb6d6fd5e00ec9c33b620
parent30d8bc5f6681b53f11049c351ff6719bc7e64f98
MDL-49329 admin: Make core_plugin_manager better suited for unit testing

We can now override the plugin manager's methods in the testable
subclass while still keeping the singleton behaviour of it. The change
makes use of late static binding.
lib/classes/plugin_manager.php
lib/tests/fixtures/testable_plugin_manager.php [new file with mode: 0644]
lib/tests/plugin_manager_test.php