28 protected function setUp(): void
30 $this->db = new \ilNullPluginStateDB();
31 $this->data_factory =
new Data\Factory();
36 $this->assertFalse($this->db->isPluginActivated(
"plg1"));
37 $this->assertFalse($this->db->isPluginActivated(
"plg2"));
38 $this->assertFalse($this->db->isPluginActivated(
"plg3"));
43 $this->assertEquals(null, $this->db->getCurrentPluginVersion(
"plg1"));
44 $this->assertEquals(null, $this->db->getCurrentPluginVersion(
"plg2"));
45 $this->assertEquals(null, $this->db->getCurrentPluginVersion(
"plg3"));
50 $this->assertEquals(null, $this->db->getCurrentPluginDBVersion(
"plg1"));
51 $this->assertEquals(null, $this->db->getCurrentPluginDBVersion(
"plg2"));
52 $this->assertEquals(null, $this->db->getCurrentPluginVersion(
"plg3"));
58 $VERSION = $this->data_factory->version(
"1.0.0");
61 $this->db->setCurrentPluginVersion($PLUGIN_ID, $VERSION, $DB_VERSION);
63 $this->assertTrue(
true);
68 $this->db->setActivation(
"SOME_ID",
true);
70 $this->assertTrue(
true);
77 $this->db->remove($PLUGIN_ID);
79 $this->assertTrue(
true);
Data Factory $data_factory
Repository interface for plugin state data.
testGetCurrentPluginVersion()
testSetCurrentPluginVersionKnownPlugin()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testGetCurrentPluginDBVersion()