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