Skip to content

Commit ef00b9c

Browse files
committed
Merge remote-tracking branch 'mainline/develop' into MAGETWO-52187-user-noaccess
2 parents 87c192e + ee61591 commit ef00b9c

File tree

1 file changed

+11
-6
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql

1 file changed

+11
-6
lines changed

dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/AdapterTest.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ class AdapterTest extends \PHPUnit_Framework_TestCase
3333
*/
3434
protected $objectManager;
3535

36-
/**
37-
* @var string
38-
*/
39-
protected $requestConfig = __DIR__ . '/../../_files/requests.xml';
40-
4136
/**
4237
* @var string
4338
*/
@@ -51,7 +46,7 @@ protected function setUp()
5146
$converter = $this->objectManager->create('Magento\Framework\Search\Request\Config\Converter');
5247

5348
$document = new \DOMDocument();
54-
$document->load($this->requestConfig);
49+
$document->load($this->getRequestConfigPath());
5550
$requestConfig = $converter->convert($document);
5651

5752
/** @var \Magento\Framework\Search\Request\Config $config */
@@ -66,6 +61,16 @@ protected function setUp()
6661
$this->adapter = $this->createAdapter();
6762
}
6863

64+
/**
65+
* Get request config path
66+
*
67+
* @return string
68+
*/
69+
protected function getRequestConfigPath()
70+
{
71+
return __DIR__ . '/../../_files/requests.xml';
72+
}
73+
6974
/**
7075
* Make sure that correct engine is set
7176
*/

0 commit comments

Comments
 (0)