Definition at line 24 of file ilObjectTest.php.
◆ setUp()
Definition at line 32 of file ilObjectTest.php.
References $DIC.
35 $this->dic_backup = is_object($DIC) ? clone
$DIC :
$DIC;
38 $DIC[
'ilias'] = $this->createMock(ILIAS::class);
39 $DIC[
'objDefinition'] = $this->createMock(ilObjectDefinition::class);
40 $DIC[
'ilDB'] = $this->db_mock = $this->createMock(ilDBInterface::class);
41 $DIC[
'ilLog'] = $this->createMock(ilLogger::class);
42 $DIC[
'ilErr'] = $this->createMock(ilErrorHandling::class);
43 $DIC[
'tree'] = $this->createMock(ilTree::class);
44 $DIC[
'ilAppEventHandler'] = $this->createMock(ilAppEventHandler::class);
45 $DIC[
'ilUser'] = $this->createMock(ilObjUser::class);
47 $DIC[
'object.customicons.factory'] = $this->createMock(
ILIAS\ILIASObject\Properties\AdditionalProperties\
Icon\Factory::class);
48 $DIC[
'learning_object_metadata'] = $this->createMock(
ILIAS\MetaData\
Services\ServicesInterface::class);
50 if (!defined(
'ILIAS_LOG_DIR')) {
51 define(
'ILIAS_LOG_DIR',
'/var/log');
54 if (!defined(
'ILIAS_LOG_ENABLED')) {
55 define(
'ILIAS_LOG_ENABLED',
true);
Interface Observer Contains several chained tasks and infos about them.
Customizing of pimple-DIC for ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ tearDown()
ilObjectTest::tearDown |
( |
| ) |
|
|
protected |
◆ testCreationDeletion()
ilObjectTest::testCreationDeletion |
( |
| ) |
|
Definition at line 65 of file ilObjectTest.php.
References $id, and ilObject\TABLE_OBJECT_DATA.
70 $this->db_mock->expects($this->any())
73 ->willReturnOnConsecutiveCalls(21, 22, 23);
75 $str =
'2022-04-28 08:00:00';
76 $this->db_mock->expects($this->any())
77 ->method(
'fetchAssoc')
78 ->willReturnOnConsecutiveCalls(
79 [
'last_update' => $str,
'create_date' => $str],
80 [
'last_update' => $str,
'create_date' => $str],
81 [
'last_update' => $str,
'create_date' => $str]
86 $this->assertEquals(21,
$id);
90 $this->assertEquals(22,
$id);
94 $this->assertEquals(23,
$id);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ $db_mock
◆ $dic_backup
The documentation for this class was generated from the following file: