| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function testToFieldDefinition($dataInt, $excpectedIsbn13Value) |
||
| 38 | { |
||
| 39 | $fieldDef = new PersistenceFieldDefinition(); |
||
| 40 | $storageDefinition = new StorageFieldDefinition([ |
||
| 41 | 'dataInt1' => $dataInt, |
||
| 42 | ]); |
||
| 43 | |||
| 44 | $this->converter->toFieldDefinition($storageDefinition, $fieldDef); |
||
| 45 | |||
| 46 | /** @var FieldSettings $fieldSettings */ |
||
| 47 | $fieldSettings = $fieldDef->fieldTypeConstraints->fieldSettings; |
||
| 48 | self::assertSame($excpectedIsbn13Value, $fieldSettings['isISBN13']); |
||
| 49 | } |
||
| 50 | |||
| 60 |