| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testConstructor(): void |
||
| 18 | { |
||
| 19 | // setupp |
||
| 20 | $field = new RowsField([ |
||
| 21 | 'title' => [ |
||
| 22 | 'type' => 'string' |
||
| 23 | ] |
||
| 24 | ], 'author'); |
||
| 25 | |||
| 26 | // test bodyy |
||
| 27 | $content = $field->html(); |
||
| 28 | |||
| 29 | // assertionss |
||
| 30 | $this->assertStringContainsString('add_element_by_template', $content, 'Necessary JavaScripts were not found'); |
||
| 31 | } |
||
| 49 |