mirror of
https://github.com/bdnugget/n98-magerun2.git
synced 2026-11-07 08:57:30 +00:00
Support .n98-magerun2 stop-file in tests
Use stop-file instead of N98_MAGERUN2_TEST_MAGENTO_ROOT environment variable.
This commit is contained in:
1 parent
ba9d0ccc57
commit
81decd5eac
1 file changed
+5
@@ -39,6 +39,11 @@ class TestCase extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
$root = getenv('N98_MAGERUN2_TEST_MAGENTO_ROOT');
|
||||
if (empty($root)) {
|
||||
if ($buffer = rtrim(file_get_contents(getcwd() . '/.n98-magerun2'))) {
|
||||
$root = $buffer;
|
||||
}
|
||||
}
|
||||
if (empty($root)) {
|
||||
$this->markTestSkipped(
|
||||
'Please specify environment variable N98_MAGERUN2_TEST_MAGENTO_ROOT with path to your test ' .
|
||||
|
||||
Reference in new issue
Block a user