Skip to content

Commit

Permalink
MAGETWO-52414: [GITHUB] Fix integration test syntax error #4343
Browse files Browse the repository at this point in the history
Making compatible with PHP 5.5
  • Loading branch information
Igor Melnikov committed Apr 30, 2016
1 parent 1f44165 commit 1ad2041
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ class AdapterTest extends \PHPUnit_Framework_TestCase
*/
protected $objectManager;

/**
* @var string
*/
protected $requestConfig = '/../../_files/requests.xml';

/**
* @var string
*/
Expand All @@ -51,7 +46,7 @@ protected function setUp()
$converter = $this->objectManager->create('Magento\Framework\Search\Request\Config\Converter');

$document = new \DOMDocument();
$document->load(__DIR__ . $this->requestConfig);
$document->load($this->getRequestConfigPath());
$requestConfig = $converter->convert($document);

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

/**
* Get request config path
*
* @return string
*/
protected function getRequestConfigPath()
{
return __DIR__ . '/../../_files/requests.xml';
}

/**
* Make sure that correct engine is set
*/
Expand Down

0 comments on commit 1ad2041

Please sign in to comment.