Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function testConvertToImportFormatWithLongName() |
||
31 | { |
||
32 | $longName = str_pad('test', 300, ', test', STR_PAD_RIGHT); |
||
33 | $longCode = str_pad('test', 300, '/ test', STR_PAD_RIGHT); |
||
34 | |||
35 | $result = $this->dataConverter->convertToImportFormat(['name' => $longName, 'code' => $longCode]); |
||
36 | |||
37 | $this->assertEquals(mb_strlen($result['name']), 255); |
||
38 | $this->assertEquals(mb_strlen($result['code']), 32); |
||
39 | } |
||
40 | } |
||
41 |