54 : void
55 {
57 $obj->setType("xxx");
58
59 $this->db_mock->expects($this->any())
60 ->method('nextId')
62 ->willReturnOnConsecutiveCalls(21, 22, 23);
63
64 $str = '2022-04-28 08:00:00';
65 $this->db_mock->expects($this->any())
66 ->method('fetchAssoc')
67 ->willReturnOnConsecutiveCalls(
68 ['last_update' => $str, 'create_date' => $str],
69 ['last_update' => $str, 'create_date' => $str],
70 ['last_update' => $str, 'create_date' => $str]
71 );
72
73 $obj->create();
75 $this->assertEquals(21,
$id);
76
77 $obj->create();
79 $this->assertEquals(22,
$id);
80
81 $obj->create();
83 $this->assertEquals(23,
$id);
84 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...