Add more unit tests for the PluginManager (#4838)

This commit is contained in:
Marc Jauvin 2020-04-01 23:47:06 -04:00 committed by GitHub
parent 61b4ef6a47
commit 9aa6b9d9d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -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);
}
}