◆ setUp()
| ilServicesActiveRecordFieldTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 32 of file ilServicesActiveRecordFieldTest.php.
References $DIC.
35 $this->dic_backup = is_object($DIC) ? clone
$DIC :
$DIC;
38 $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 47 of file ilServicesActiveRecordFieldTest.php.
References $id, and arFieldList\getInstance().
58 protected int $id = 0;
67 protected string $string_data;
69 public function getConnectorContainerName(): string
77 $primaryField = $arFieldList->getPrimaryField();
78 $this->assertEquals(
'id', $primaryField->getName());
79 $this->assertEquals(8, $primaryField->getLength());
80 $this->assertEquals(
'integer', $primaryField->getFieldType());
81 $this->assertEquals(
false, $primaryField->getIndex());
82 $this->assertEquals(
true, $primaryField->getPrimary());
84 $arField = $arFieldList->getFieldByName(
'string_data');
85 $this->assertEquals(
'string_data', $arField->getName());
86 $this->assertEquals(256, $arField->getLength());
87 $this->assertEquals(
'text', $arField->getFieldType());
88 $this->assertEquals(
true, $arField->getIndex());
89 $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
| ilServicesActiveRecordFieldTest::$db_mock |
|
protected |
◆ $dic_backup
| ILIAS DI Container ilServicesActiveRecordFieldTest::$dic_backup = null |
|
private |
The documentation for this class was generated from the following file: