Skip to content

Commit

Permalink
Merge pull request #586 from magento-extensibility/MAGETWO-52414-gith…
Browse files Browse the repository at this point in the history
…ub-fix-integration-test

[Extensibility] Magetwo 52414 GitHub fix integration test
  • Loading branch information
monkeysee committed Apr 30, 2016
2 parents c790670 + 1ad2041 commit ee61591
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 = __DIR__ . '/../../_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($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 ee61591

Please sign in to comment.