Source of file DMSDocumentAddExistingFieldTest.php
Size: 0,700 Bytes - Last Modified: 2021-12-23T10:29:25+00:00
/var/www/docs.ssmods.com/process/src/tests/cms/DMSDocumentAddExistingFieldTest.php
1234567891011121314151617181920212223 | <?php class DMSDocumentAddExistingFieldTest extends SapphireTest { /** * The constructor should create a tree dropdown field */ public function testFieldContainsTreeDropdownField() { $field = new DMSDocumentAddExistingField('Test', 'Test'); $this->assertContainsOnlyInstancesOf('TreeDropdownField', $field->getChildren()); $this->assertSame('PageSelector', $field->getChildren()->first()->getName()); } public function testSetAndGetRecord() { $record = new DMSDocumentSet; $field = new DMSDocumentAddExistingField('Test'); $field->setRecord($record); $this->assertSame($record, $field->getRecord()); } } |