ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Test_ilDatabaseUpdateSteps Class Reference
+ Inheritance diagram for Test_ilDatabaseUpdateSteps:
+ Collaboration diagram for Test_ilDatabaseUpdateSteps:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
 step_4 ()
 
 step_2 ()
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Data Fields

array $called = []
 

Protected Attributes

ilDBInterface $db = null
 

Detailed Description

Member Function Documentation

◆ prepare()

Test_ilDatabaseUpdateSteps::prepare ( ilDBInterface  $db)

Definition at line 29 of file ilDatabaseUpdateStepsExecutedObjectiveTest.php.

29 : void
30 {
31 $this->db = $db;
32 }

References $db.

◆ step_1()

Test_ilDatabaseUpdateSteps::step_1 ( )

Definition at line 35 of file ilDatabaseUpdateStepsExecutedObjectiveTest.php.

35 : void
36 {
37 $this->called[] = 1;
38 // Call some function on the interface to check if this step
39 // is really called.
40 $this->db->connect();
41 }

◆ step_2()

Test_ilDatabaseUpdateSteps::step_2 ( )

Definition at line 52 of file ilDatabaseUpdateStepsExecutedObjectiveTest.php.

52 : void
53 {
54 $this->called[] = 2;
55 // Call some function on the interface to check if this step
56 // is really called.
57 $this->db->connect();
58 }

◆ step_4()

Test_ilDatabaseUpdateSteps::step_4 ( )

Definition at line 44 of file ilDatabaseUpdateStepsExecutedObjectiveTest.php.

44 : void
45 {
46 $this->called[] = 4;
47 // Call some function on the interface to check if this step
48 // is really called.
49 $this->db->connect();
50 }

Field Documentation

◆ $called

array Test_ilDatabaseUpdateSteps::$called = []

◆ $db

ilDBInterface Test_ilDatabaseUpdateSteps::$db = null
protected

Definition at line 27 of file ilDatabaseUpdateStepsExecutedObjectiveTest.php.

Referenced by prepare().


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