Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Fix testUser creation for phpunit tests (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeder authored Feb 8, 2022
1 parent b715bab commit 9c57737
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Command/DkanCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function dkanTestCypress(array $args)
*/
public function dkanTestDredd()
{
$this->dkanTestUser("testuser", "2jqzOAnXS9mmcLasy", "api_user");
$this->apiUser();
$this->taskExec("npm install dredd")
->dir("docroot/modules/contrib/dkan")
->run();
Expand All @@ -69,7 +69,7 @@ public function dkanTestDredd()
*/
public function dkanTestPhpunit(array $args)
{
$this->dkanTestUser("testuser", "2jqzOAnXS9mmcLasy", "api_user");
$this->apiUser();
$proj_dir = Util::getProjectDirectory();
$phpunit_executable = $this->getPhpUnitExecutable();

Expand All @@ -89,7 +89,7 @@ public function dkanTestPhpunit(array $args)
*/
public function dkanTestPhpunitCoverage($code_climate_reporter_id)
{
$this->dkanTestUser("testuser", "2jqzOAnXS9mmcLasy", "api_user");
$this->apiUser();
$proj_dir = Util::getProjectDirectory();
$dkanDir = "{$proj_dir}/docroot/modules/contrib/dkan";

Expand Down

0 comments on commit 9c57737

Please sign in to comment.