Skip to content

Commit

Permalink
Moved more vars into central phpunit config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Tuke committed Jun 15, 2014
1 parent 0fe7a39 commit 5099fbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions plugins/restapi/tests/phpunit.xml
@@ -1,5 +1,7 @@
<phpunit bootstrap="bootstrap.php">
<php>
<const name="API_URL_BASE_PATH" value="http://local.pl/admin/?page=call&amp;pi=restapi"/>
<const name="API_LOGIN_USERNAME" value="admin"/>
<const name="API_LOGIN_PASSWORD" value="phplist"/>
</php>
</phpunit>
4 changes: 2 additions & 2 deletions plugins/restapi/tests/restapi.php
Expand Up @@ -13,8 +13,8 @@ class TestRestapi extends \PHPUnit_Framework_TestCase

function setUp()
{
$this->loginName = 'admin';
$this->password = 'phplist';
$this->loginName = API_LOGIN_USERNAME;
$this->password = API_LOGIN_PASSWORD;
// Set URL from constant stored in phpunit.xml
$this->url = API_URL_BASE_PATH;
}
Expand Down

0 comments on commit 5099fbf

Please sign in to comment.