◆ setUp()
ilDatabaseUpdateStepTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 33 of file ilDatabaseUpdateStepTest.php.
35 $this->parent = $this->createMock(Test_ilDatabaseUpdateStep::class);
36 $this->precondition = $this->createMock(Objective::class);
38 $this->step = new \ilDatabaseUpdateStep(
◆ testCallsExecutionLog()
ilDatabaseUpdateStepTest::testCallsExecutionLog |
( |
| ) |
|
Definition at line 56 of file ilDatabaseUpdateStepTest.php.
References $log.
58 $env = $this->createMock(Environment::class);
59 $log = $this->createMock(\ilDatabaseUpdateStepExecutionLog::class);
60 $db = $this->createMock(\ilDBInterface::class);
63 ->method(
"getResource")
64 ->will($this->returnValueMap([
65 [Environment::RESOURCE_DATABASE,
$db],
66 [\ilDatabaseUpdateStepExecutionLog::class,
$log]
70 ->expects($this->once(), $this->at(0))
72 ->with(get_class($this->parent), 1);
75 ->expects($this->once(), $this->at(1))
77 ->with(get_class($this->parent), 1);
79 $this->step->achieve($env);
◆ testCallsMethod()
ilDatabaseUpdateStepTest::testCallsMethod |
( |
| ) |
|
Definition at line 82 of file ilDatabaseUpdateStepTest.php.
84 $env = $this->createMock(Environment::class);
85 $db = $this->createMock(\ilDBInterface::class);
88 ->method(
"getResource")
89 ->will($this->returnValueMap([
90 [Environment::RESOURCE_DATABASE,
$db],
91 [\ilDatabaseUpdateStepExecutionLog::class, null]
95 ->expects($this->once())
100 $this->step->achieve($env);
◆ testGetPreconditions()
ilDatabaseUpdateStepTest::testGetPreconditions |
( |
| ) |
|
Definition at line 46 of file ilDatabaseUpdateStepTest.php.
48 $env = $this->createMock(Environment::class);
51 [$this->precondition, $this->precondition],
52 $this->step->getPreconditions($env)
The documentation for this class was generated from the following file: