summaryrefslogtreecommitdiff
path: root/tests/units/Core/Plugin/LoaderTest.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-07 19:35:06 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-07 19:35:06 -0400
commit8ddd56636154e5e55892fbb5ac9a5fe186b8df1f (patch)
treeff8e8fa95f06f4dcbfee949e058a1edb1aa7ef5d /tests/units/Core/Plugin/LoaderTest.php
parent714bdb0d024c952cafd7924212b862ae31d7f1d4 (diff)
Improve plugin loading
Diffstat (limited to 'tests/units/Core/Plugin/LoaderTest.php')
-rw-r--r--tests/units/Core/Plugin/LoaderTest.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/units/Core/Plugin/LoaderTest.php b/tests/units/Core/Plugin/LoaderTest.php
deleted file mode 100644
index 448723d8..00000000
--- a/tests/units/Core/Plugin/LoaderTest.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-require_once __DIR__.'/../../Base.php';
-
-use Kanboard\Core\Plugin\Loader;
-
-class LoaderTest extends Base
-{
- public function testGetSchemaVersion()
- {
- $p = new Loader($this->container);
- $this->assertEquals(0, $p->getSchemaVersion('not_found'));
-
- $this->assertTrue($p->setSchemaVersion('plugin1', 1));
- $this->assertEquals(1, $p->getSchemaVersion('plugin1'));
-
- $this->assertTrue($p->setSchemaVersion('plugin2', 33));
- $this->assertEquals(33, $p->getSchemaVersion('plugin2'));
-
- $this->assertTrue($p->setSchemaVersion('plugin1', 2));
- $this->assertEquals(2, $p->getSchemaVersion('plugin1'));
- }
-}