diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-15 06:56:03 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-15 06:56:03 +0000 |
| commit | 24778635d3cea1bf2a1e59fccb4cccbdcf0af890 (patch) | |
| tree | 0adcb2503071942cb0d78b395b4bb27a1d48b9a7 /tests/jsonapi | |
| parent | 4c0242f044a53979a08e7bec5913dc6a48b976f9 (diff) | |
update codeception/codeception to 5.1.2 and codeception/module-asserts to 3.0.0, fix test, fixes #4150
Closes #4150
Merge request studip/studip!2990
Diffstat (limited to 'tests/jsonapi')
| -rw-r--r-- | tests/jsonapi/StructuralElementsShowTest.php | 2 | ||||
| -rw-r--r-- | tests/jsonapi/_bootstrap.php | 14 |
2 files changed, 7 insertions, 9 deletions
diff --git a/tests/jsonapi/StructuralElementsShowTest.php b/tests/jsonapi/StructuralElementsShowTest.php index 8cc168a..4873aae 100644 --- a/tests/jsonapi/StructuralElementsShowTest.php +++ b/tests/jsonapi/StructuralElementsShowTest.php @@ -52,7 +52,7 @@ class StructuralElementsShowTest extends \Codeception\Test\Unit $childIDs = $structuralElement->children->pluck('id'); $this->assertCount(count($childIDs), $includedResources); foreach ($includedResources as $included) { - $this->assertContains($included->id(), $childIDs); + $this->assertContainsEquals($included->id(), $childIDs); } } diff --git a/tests/jsonapi/_bootstrap.php b/tests/jsonapi/_bootstrap.php index baf3740..cb6df04 100644 --- a/tests/jsonapi/_bootstrap.php +++ b/tests/jsonapi/_bootstrap.php @@ -74,14 +74,12 @@ StudipAutoloader::addAutoloadPath($GLOBALS['STUDIP_BASE_PATH'].'/lib/classes/vis StudipAutoloader::addAutoloadPath($GLOBALS['STUDIP_BASE_PATH'].'/vendor/oauth-php/library'); // Messy file names -StudipAutoloader::addClassLookups( - array( - 'StudipPlugin' => $GLOBALS['STUDIP_BASE_PATH'].'/lib/plugins/core/StudIPPlugin.class.php', - 'messaging' => $GLOBALS['STUDIP_BASE_PATH'].'/lib/messaging.inc.php', - ) -); - -$GLOBALS['_fullname_sql'] = array(); +StudipAutoloader::addClassLookups([ + 'StudipPlugin' => $GLOBALS['STUDIP_BASE_PATH'].'/lib/plugins/core/StudIPPlugin.class.php', + 'messaging' => $GLOBALS['STUDIP_BASE_PATH'].'/lib/messaging.inc.php', +]); + +$GLOBALS['_fullname_sql'] = []; $GLOBALS['_fullname_sql']['full'] = "TRIM(CONCAT(title_front,' ',Vorname,' ',Nachname,IF(title_rear!='',CONCAT(', ',title_rear),'')))"; $GLOBALS['_fullname_sql']['full_rev'] = "TRIM(CONCAT(Nachname,', ',Vorname,IF(title_front!='',CONCAT(', ',title_front),''),IF(title_rear!='',CONCAT(', ',title_rear),'')))"; $GLOBALS['_fullname_sql']['no_title'] = "CONCAT(Vorname ,' ', Nachname)"; |
