ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDatabaseUpdateStepsMetricsCollectedObjectiveTest.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
23 
25 {
26  protected ?ilDBInterface $db = null;
27 
28  public function prepare(ilDBInterface $db): void
29  {
30  $this->db = $db;
31  }
32 
33  public function step_1(ilDBInterface $db)
34  {
35  }
36 
37  public function step_4(ilDBInterface $db)
38  {
39  }
40 
41  public function step_2(ilDBInterface $db)
42  {
43  }
44 }
45 
47 {
49  public Storage $storage;
50 
51  protected function setUp(): void
52  {
53  $this->steps = new Test_ilDatabaseUpdateSteps2();
54  $this->storage = $this->createMock(Storage::class);
55  }
56 
58  {
59  $obj = new ilDatabaseUpdateStepsMetricsCollectedObjective($this->storage, $this->steps);
60  $this->assertInstanceOf(ilDatabaseUpdateStepsMetricsCollectedObjective::class, $obj);
61 
62  return $obj;
63  }
64 }