| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | public function testFormFieldsHaveNamespaces() | ||
| 14 |     { | ||
| 15 | /** @var ElementContent $record */ | ||
| 16 | $record = $this->objFromFixture(ElementContent::class, 'content_block'); | ||
| 17 | |||
| 18 | $factory = new EditFormFactory(); | ||
| 19 | $result = $factory->getForm(null, 'FooForm', ['Record' => $record]); | ||
| 20 | $fields = $result->Fields(); | ||
| 21 | |||
| 22 |         $this->assertNotNull($fields->dataFieldByName('PageElements_' . $record->ID . '_Title')); | ||
| 23 | } | ||
| 25 |