@con_is_primary true @con_is_unique true @con_has_field true @con_fieldtype integer @con_length 8
48 : void
49 {
59 protected int $id = 0;
60
68 protected string $string_data;
69
70 public function getConnectorContainerName(): string
71 {
72 return 'table_name';
73 }
74 };
75
77
78 $primaryField = $arFieldList->getPrimaryField();
79 $this->assertSame('id', $primaryField->getName());
80 $this->assertSame(8, $primaryField->getLength());
81 $this->assertSame('integer', $primaryField->getFieldType());
82 $this->assertEquals(false, $primaryField->getIndex());
83 $this->assertEquals(true, $primaryField->getPrimary());
84
85 $arField = $arFieldList->getFieldByName('string_data');
86 $this->assertInstanceOf(\arField::class, $arField);
87 $this->assertSame('string_data', $arField->getName());
88 $this->assertSame(256, $arField->getLength());
89 $this->assertSame('text', $arField->getFieldType());
90 $this->assertEquals(true, $arField->getIndex());
91 $this->assertEquals(false, $arField->getPrimary());
92 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(ActiveRecord $activeRecord)