src/Test/Unit/Model/Config/Source/RoundingRuleTest.php 1 location
|
@@ 54-60 (lines=7) @@
|
| 51 |
|
|
| 52 |
|
$options = $this->roundingRule->toArray(); |
| 53 |
|
|
| 54 |
|
foreach ($options as $option) { |
| 55 |
|
$this->assertInternalType('array', $option); |
| 56 |
|
foreach ($option as $key => $value) { |
| 57 |
|
$this->assertInternalType('string', $key); |
| 58 |
|
$this->assertInstanceOf(\Magento\Framework\Phrase::class, $value); |
| 59 |
|
} |
| 60 |
|
} |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
|
src/Test/Unit/Model/Config/SourceTestAbstract.php 1 location
|
@@ 29-35 (lines=7) @@
|
| 26 |
|
public function testToArray() |
| 27 |
|
{ |
| 28 |
|
$array = $this->source->toArray(); |
| 29 |
|
foreach ($array as $item) { |
| 30 |
|
$this->assertInternalType('array', $item); |
| 31 |
|
foreach ($item as $key => $value) { |
| 32 |
|
$this->assertInternalType('string', $key); |
| 33 |
|
$this->assertInstanceOf(\Magento\Framework\Phrase::class, $value); |
| 34 |
|
} |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
} |
| 38 |
|
|