◆ setUp()
ilServicesActiveRecordFieldTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 33 of file ilServicesActiveRecordFieldTest.php.
References $DIC.
36 $this->dic_backup = is_object($DIC) ? clone
$DIC :
$DIC;
39 $DIC[
'ilDB'] = $this->db_mock = $this->createMock(ilDBInterface::class);
Customizing of pimple-DIC for ILIAS.
◆ tearDown()
ilServicesActiveRecordFieldTest::tearDown |
( |
| ) |
|
|
protected |
◆ testFieldList()
ilServicesActiveRecordFieldTest::testFieldList |
( |
| ) |
|
true true true integer 8
true text true 256
Definition at line 48 of file ilServicesActiveRecordFieldTest.php.
References $id, and arFieldList\getInstance().
59 protected int $id = 0;
68 protected string $string_data;
70 public function getConnectorContainerName(): string
78 $primaryField = $arFieldList->getPrimaryField();
79 $this->assertEquals(
'id', $primaryField->getName());
80 $this->assertEquals(8, $primaryField->getLength());
81 $this->assertEquals(
'integer', $primaryField->getFieldType());
82 $this->assertEquals(
false, $primaryField->getIndex());
83 $this->assertEquals(
true, $primaryField->getPrimary());
85 $arField = $arFieldList->getFieldByName(
'string_data');
86 $this->assertEquals(
'string_data', $arField->getName());
87 $this->assertEquals(256, $arField->getLength());
88 $this->assertEquals(
'text', $arField->getFieldType());
89 $this->assertEquals(
true, $arField->getIndex());
90 $this->assertEquals(
false, $arField->getPrimary());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(ActiveRecord $activeRecord)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
◆ $db_mock
MockObject ilServicesActiveRecordFieldTest::$db_mock = null |
|
protected |
◆ $dic_backup
The documentation for this class was generated from the following file: