Skip to content

Commit

Permalink
fixed CI failure by removing array tableUsername
Browse files Browse the repository at this point in the history
  • Loading branch information
swoichha committed Aug 24, 2020
1 parent e53ddf1 commit 16a9f07
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/acceptance/features/bootstrap/OccUsersGroupsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,13 @@ public function theseUsersHaveBeenCreatedUsingTheOccCommand(TableNode $table) {
$this->createUsersUsingOccCommand($table);
$this->occContext->theCommandShouldHaveBeenSuccessful();
$createdUsersList = $this->featureContext->getCreatedUsers();
$tableUsername = [];
$usernameArray = \array_keys($createdUsersList);
foreach ($table as $row) {
\array_push($tableUsername, $row['username']);
Assert::assertTrue(
\in_array($row['username'], $usernameArray),
"User: " . $row['username'] . " was not created"
);
}
Assert::assertTrue(
\in_array($tableUsername, $usernameArray, true),
"User: " . \implode(",", $tableUsername) . " was not created"
);
}

/**
Expand Down

0 comments on commit 16a9f07

Please sign in to comment.