From 9aa6b9d9d1a92d0c1163561e39bac4b1ddd21f1c Mon Sep 17 00:00:00 2001 From: Marc Jauvin Date: Wed, 1 Apr 2020 23:47:06 -0400 Subject: [PATCH] Add more unit tests for the PluginManager (#4838) --- tests/unit/system/classes/PluginManagerTest.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/unit/system/classes/PluginManagerTest.php b/tests/unit/system/classes/PluginManagerTest.php index 9130b926c..6c18dae25 100644 --- a/tests/unit/system/classes/PluginManagerTest.php +++ b/tests/unit/system/classes/PluginManagerTest.php @@ -212,5 +212,17 @@ class PluginManagerTest extends TestCase $result = $this->manager->isDisabled('DependencyTest.NotFound'); $this->assertTrue($result); + + /** + * Test case for https://github.com/octobercms/october/pull/4838 + */ + $result = $this->manager->isDisabled('dependencyTest\Wrongcase'); + $this->assertFalse($result); + + $result = $this->manager->isDisabled('dependencyTest.Wrongcase'); + $this->assertFalse($result); + + $result = $this->manager->isDisabled('dependencytest.notfound'); + $this->assertTrue($result); } }