Skip to content

Commit

Permalink
Merge pull request #25416 from totten/master-scan-fix
Browse files Browse the repository at this point in the history
CaseActivityTest - Fix quiet regressions
  • Loading branch information
eileenmcnaughton authored Jan 25, 2023
2 parents 7439108 + 4c9783f commit 4502008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function testExampleGet() {
->execute()
->single();
$this->assertEquals($name, $get['name']);
$this->assertEquals(100, $get['data']['modelProps']['contact']['id']);
$this->assertEquals(0, $get['data']['modelProps']['contact']['id']);
$this->assertEquals('myrole', $get['data']['modelProps']['contact']['role']);
}

Expand Down
5 changes: 3 additions & 2 deletions tests/phpunit/CiviTest/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
function civitest_civicrm_scanClasses(array &$classes): void {
$phpunit = \Civi::paths()->getPath('[civicrm.root]/tests/phpunit');
if (strpos(get_include_path(), $phpunit) !== FALSE) {
\Civi\Core\ClassScanner::scanFolders($classes, $phpunit, 'CRM/*/WorkflowMessage', '_');
\Civi\Core\ClassScanner::scanFolders($classes, $phpunit, 'Civi/*/WorkflowMessage', '\\');
\Civi\Core\ClassScanner::scanFolders($classes, $phpunit, 'CRM/*/WorkflowMessage', '_', '/Test$/');
\Civi\Core\ClassScanner::scanFolders($classes, $phpunit, 'Civi/*/WorkflowMessage', '\\', '/Test$/');
// Exclude all `*Test.php` files - if we load them, then phpunit gets confused.
}
}

Expand Down

0 comments on commit 4502008

Please sign in to comment.