PMCORE-3985 PHP Unit, solve the issue in the Circle CI

This commit is contained in:
Roly Gutierrez
2022-09-14 12:08:21 -04:00
parent f7112d18e9
commit cc36bbe277
12 changed files with 39 additions and 41 deletions

View File

@@ -39,11 +39,11 @@ class WorkflowToolsTest extends TestCase
ob_start();
$this->workspaceTools->addAsyncOptionToSchedulerCommands(false);
$string = ob_get_clean();
$this->assertRegExp("/This was previously updated/", $string);
$this->assertMatchesRegularExpression("/This was previously updated/", $string);
ob_start();
$this->workspaceTools->addAsyncOptionToSchedulerCommands(true);
$string = ob_get_clean();
$this->assertRegExp("/Adding \+async option/", $string);
$this->assertMatchesRegularExpression("/Adding \+async option/", $string);
}
}