summaryrefslogtreecommitdiff
path: root/tests
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
parent714bdb0d024c952cafd7924212b862ae31d7f1d4 (diff)
Improve plugin loading
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Base.php6
-rw-r--r--tests/units/Core/Plugin/SchemaHandlerTest.php (renamed from tests/units/Core/Plugin/LoaderTest.php)6
2 files changed, 3 insertions, 9 deletions
diff --git a/tests/units/Base.php b/tests/units/Base.php
index a3dedafd..171f9b2b 100644
--- a/tests/units/Base.php
+++ b/tests/units/Base.php
@@ -8,7 +8,6 @@ use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher;
use Symfony\Component\Stopwatch\Stopwatch;
use SimpleLogger\Logger;
-use SimpleLogger\File;
use Kanboard\Core\Session\FlashMessage;
use Kanboard\Core\Session\SessionStorage;
use Kanboard\ServiceProvider\ActionProvider;
@@ -91,9 +90,4 @@ abstract class Base extends PHPUnit_Framework_TestCase
{
$this->container['db']->closeConnection();
}
-
- public function isWindows()
- {
- return substr(PHP_OS, 0, 3) === 'WIN';
- }
}
diff --git a/tests/units/Core/Plugin/LoaderTest.php b/tests/units/Core/Plugin/SchemaHandlerTest.php
index 448723d8..98a00e0b 100644
--- a/tests/units/Core/Plugin/LoaderTest.php
+++ b/tests/units/Core/Plugin/SchemaHandlerTest.php
@@ -2,13 +2,13 @@
require_once __DIR__.'/../../Base.php';
-use Kanboard\Core\Plugin\Loader;
+use Kanboard\Core\Plugin\SchemaHandler;
-class LoaderTest extends Base
+class SchemaHandlerTest extends Base
{
public function testGetSchemaVersion()
{
- $p = new Loader($this->container);
+ $p = new SchemaHandler($this->container);
$this->assertEquals(0, $p->getSchemaVersion('not_found'));
$this->assertTrue($p->setSchemaVersion('plugin1', 1));