| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function test() |
||
| 12 | { |
||
| 13 | $mappings = new Mappings(); |
||
| 14 | $mappings |
||
| 15 | ->add('foo', 'fooloo') |
||
| 16 | ->add('baz', array('some' => 'else')); |
||
| 17 | |||
| 18 | $expectedMappingItemConverter = new MappingItemConverter(array( |
||
| 19 | 'foo' => 'fooloo', |
||
| 20 | 'baz' =>array('some' => 'else') |
||
| 21 | )); |
||
| 22 | |||
| 23 | $workflow = $this->getMockBuilder('Ddeboer\DataImport\Workflow')->disableOriginalConstructor()->getMock(); |
||
| 24 | $workflow |
||
| 25 | ->expects($this->once()) |
||
| 26 | ->method('addItemConverter') |
||
| 27 | ->with($expectedMappingItemConverter); |
||
| 28 | |||
| 29 | $mappings->apply($workflow, new DefaultConverterProvider()); |
||
| 30 | } |
||
| 31 | |||
| 33 |