27 protected function setUp(): void
29 $this->db = new \ilNullPluginStateDB();
30 $this->data_factory =
new Data\Factory();
35 $this->assertFalse($this->db->isPluginActivated(
"plg1"));
36 $this->assertFalse($this->db->isPluginActivated(
"plg2"));
37 $this->assertFalse($this->db->isPluginActivated(
"plg3"));
42 $this->assertEquals(
null, $this->db->getCurrentPluginVersion(
"plg1"));
43 $this->assertEquals(
null, $this->db->getCurrentPluginVersion(
"plg2"));
44 $this->assertEquals(
null, $this->db->getCurrentPluginVersion(
"plg3"));
49 $this->assertEquals(
null, $this->db->getCurrentPluginDBVersion(
"plg1"));
50 $this->assertEquals(
null, $this->db->getCurrentPluginDBVersion(
"plg2"));
51 $this->assertEquals(
null, $this->db->getCurrentPluginVersion(
"plg3"));
57 $VERSION = $this->data_factory->version(
"1.0.0");
60 $this->db->setCurrentPluginVersion($PLUGIN_ID, $VERSION, $DB_VERSION);
62 $this->assertTrue(
true);
67 $this->db->setActivation(
"SOME_ID",
true);
69 $this->assertTrue(
true);
76 $this->db->remove($PLUGIN_ID);
78 $this->assertTrue(
true);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Data Factory $data_factory
Repository interface for plugin state data.
testGetCurrentPluginVersion()
testSetCurrentPluginVersionKnownPlugin()
testGetCurrentPluginDBVersion()