| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function testOnAfterFieldDefinition() |
||
| 17 | { |
||
| 18 | $data = ArrayList::create(); |
||
| 19 | |||
| 20 | $item = [ |
||
| 21 | 'Field' => 'Test' |
||
| 22 | ]; |
||
| 23 | |||
| 24 | $extension = new FluentSchemaExtension(); |
||
| 25 | |||
| 26 | $extension->onAfterFieldDefinition($data, $item); |
||
| 27 | |||
| 28 | $copy = $data->first(); |
||
| 29 | |||
| 30 | $this->assertEquals('en_NZ_Test', $copy['Field']); |
||
| 31 | |||
| 32 | $this->assertEquals(Locale::get()->count(), $data->count()); |
||
| 33 | } |
||
| 35 |