Skip to content

Commit e9b49bc

Browse files
author
Ievgen Shakhsuvarov
committed
MAGETWO-37951: Internal Server error on clicking Continue on Billing information
- Builds fix
1 parent 98c70ba commit e9b49bc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

setup/src/Magento/Setup/Test/Unit/Module/Di/Code/Scanner/ServiceDataAttributesScannerTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@ class ServiceDataAttributesScannerTest extends \PHPUnit_Framework_TestCase
1515
*/
1616
protected $model;
1717

18+
/**
19+
* @var string
20+
*/
21+
protected $testFile;
22+
1823
protected function setUp()
1924
{
2025
$this->model = new ServiceDataAttributesScanner();
26+
$this->testFile = str_replace('\\', '/', realpath(__DIR__ . '/../../') . '/_files/service_data_attributes.xml');
2127
}
2228

2329
public function testCollectEntities()
2430
{
25-
$files = [realpath('../../_files/service_data_attributes.xml')];
31+
$files = [$this->testFile];
2632
$expectedResult = [
2733
'Magento\Sales\Api\Data\OrderExtensionInterface',
2834
'Magento\Sales\Api\Data\OrderExtension',
@@ -34,6 +40,6 @@ public function testCollectEntities()
3440
'Magento\Quote\Api\Data\TotalsAdditionalDataExtension'
3541
];
3642

37-
$this->assertEquals($expectedResult, $this->model->collectEntities($files));
43+
$this->assertSame($expectedResult, $this->model->collectEntities($files));
3844
}
3945
}

0 commit comments

Comments
 (0)