Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     $plugin = new Loader($this->container);
     $plugin->loadSchema('Timetable');
     $plugin->load('Timetable');
 }
Exemplo n.º 2
0
 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'));
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $plugin = new Loader($this->container);
     $plugin->loadSchema('Budget');
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     $plugin = new Loader($this->container);
     $plugin->scan();
 }