| Conditions | 3 |
| Paths | 3 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function migrate() |
||
| 34 | { |
||
| 35 | $iface = '\\Aimeos\\MShop\\Context\\Item\\Iface'; |
||
| 36 | if( !( $this->additional instanceof $iface ) ) { |
||
| 37 | throw new \Aimeos\MW\Setup\Exception( sprintf( 'Additionally provided object is not of type "%1$s"', $iface ) ); |
||
| 38 | } |
||
| 39 | |||
| 40 | $this->msg( 'Adding customer property test data', 0 ); |
||
| 41 | $this->additional->setEditor( 'ai-fosuser:unittest' ); |
||
| 42 | |||
| 43 | $ds = DIRECTORY_SEPARATOR; |
||
| 44 | $path = __DIR__ . $ds . 'data' . $ds . 'customer-property.php'; |
||
| 45 | |||
| 46 | if( ( $testdata = include( $path ) ) == false ) { |
||
| 47 | throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for customer domain', $path ) ); |
||
| 48 | } |
||
| 49 | |||
| 50 | $this->addCustomerPropertyData( $testdata, 'FosUser' ); |
||
| 51 | |||
| 52 | $this->status( 'done' ); |
||
| 53 | } |
||
| 54 | } |