ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilNullPluginStateDBTest Class Reference
+ Inheritance diagram for ilNullPluginStateDBTest:
+ Collaboration diagram for ilNullPluginStateDBTest:

Public Member Functions

 testIsPluginActivated ()
 
 testGetCurrentPluginVersion ()
 
 testGetCurrentPluginDBVersion ()
 
 testSetCurrentPluginVersionKnownPlugin ()
 
 testSetActivation ()
 
 testRemove ()
 

Protected Member Functions

 setUp ()
 

Protected Attributes

ilPluginStateDB $db
 
Data Factory $data_factory
 

Detailed Description

Definition at line 22 of file ilNullPluginStateDBTest.php.

Member Function Documentation

◆ setUp()

ilNullPluginStateDBTest::setUp ( )
protected

Definition at line 27 of file ilNullPluginStateDBTest.php.

27  : void
28  {
29  $this->db = new \ilNullPluginStateDB();
30  $this->data_factory = new Data\Factory();
31  }

◆ testGetCurrentPluginDBVersion()

ilNullPluginStateDBTest::testGetCurrentPluginDBVersion ( )

Definition at line 47 of file ilNullPluginStateDBTest.php.

References null.

47  : void
48  {
49  $this->assertEquals(null, $this->db->getCurrentPluginDBVersion("plg1"));
50  $this->assertEquals(null, $this->db->getCurrentPluginDBVersion("plg2"));
51  $this->assertEquals(null, $this->db->getCurrentPluginVersion("plg3"));
52  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ testGetCurrentPluginVersion()

ilNullPluginStateDBTest::testGetCurrentPluginVersion ( )

Definition at line 40 of file ilNullPluginStateDBTest.php.

References null.

40  : void
41  {
42  $this->assertEquals(null, $this->db->getCurrentPluginVersion("plg1"));
43  $this->assertEquals(null, $this->db->getCurrentPluginVersion("plg2"));
44  $this->assertEquals(null, $this->db->getCurrentPluginVersion("plg3"));
45  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

◆ testIsPluginActivated()

ilNullPluginStateDBTest::testIsPluginActivated ( )

Definition at line 33 of file ilNullPluginStateDBTest.php.

33  : void
34  {
35  $this->assertFalse($this->db->isPluginActivated("plg1"));
36  $this->assertFalse($this->db->isPluginActivated("plg2"));
37  $this->assertFalse($this->db->isPluginActivated("plg3"));
38  }

◆ testRemove()

ilNullPluginStateDBTest::testRemove ( )

Definition at line 73 of file ilNullPluginStateDBTest.php.

73  : void
74  {
75  $PLUGIN_ID = "plg1";
76  $this->db->remove($PLUGIN_ID);
77 
78  $this->assertTrue(true); // Should simply work...
79  }

◆ testSetActivation()

ilNullPluginStateDBTest::testSetActivation ( )

Definition at line 65 of file ilNullPluginStateDBTest.php.

65  : void
66  {
67  $this->db->setActivation("SOME_ID", true);
68 
69  $this->assertTrue(true); // Should simply work...
70  }

◆ testSetCurrentPluginVersionKnownPlugin()

ilNullPluginStateDBTest::testSetCurrentPluginVersionKnownPlugin ( )

Definition at line 54 of file ilNullPluginStateDBTest.php.

54  : void
55  {
56  $PLUGIN_ID = "plg2";
57  $VERSION = $this->data_factory->version("1.0.0");
58  $DB_VERSION = 23;
59 
60  $this->db->setCurrentPluginVersion($PLUGIN_ID, $VERSION, $DB_VERSION);
61 
62  $this->assertTrue(true); // Should simply work...
63  }

Field Documentation

◆ $data_factory

Data Factory ilNullPluginStateDBTest::$data_factory
protected

Definition at line 25 of file ilNullPluginStateDBTest.php.

◆ $db

ilPluginStateDB ilNullPluginStateDBTest::$db
protected

Definition at line 24 of file ilNullPluginStateDBTest.php.


The documentation for this class was generated from the following file: