Improve plugin loading

This commit is contained in:
Frederic Guillot
2016-05-07 19:35:06 -04:00
parent 714bdb0d02
commit 8ddd566361
6 changed files with 177 additions and 114 deletions

View File

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