Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Added the possibility to configure the node modules path in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Sep 26, 2014
1 parent 4de1b40 commit 0f4b27a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions phpunit.xml.dist
Expand Up @@ -12,6 +12,7 @@
<var name="driver_config_factory" value="Behat\Mink\Tests\Driver\ZombieConfig::getInstance" />

<!--server name="WEB_FIXTURES_HOST" value="http://test.mink.dev" /-->
<!--server name="NODE_MODULES_PATH" value="path/to/ZombieDriver/node_modules/" /-->
</php>

<filter>
Expand Down
4 changes: 4 additions & 0 deletions tests/ZombieConfig.php
Expand Up @@ -19,6 +19,10 @@ public function createDriver()
{
$server = new ZombieServer('127.0.0.1', 8124, 'node');

if (isset($_SERVER['NODE_MODULES_PATH'])) {
$server->setNodeModulesPath($_SERVER['NODE_MODULES_PATH']);
}

return new ZombieDriver($server);
}

Expand Down

0 comments on commit 0f4b27a

Please sign in to comment.