Skip to content

NOW MANAGED ON CODEBERG

Fixed dodgy test helper signature causing tests to fail

Dan Brownffdfdc7449a0
diff --git a/tests/TestCase.php b/tests/TestCase.php
index 30b07da0f..98e0dfbac 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -62,7 +62,7 @@ abstract class TestCase extends BaseTestCase
* Assert that an activity entry exists of the given key.
* Checks the activity belongs to the given entity if provided.
*/
- protected function assertActivityExists(string $type, ?Entity $entity, ?string $detail)
+ protected function assertActivityExists(string $type, ?Entity $entity = null, string $detail = '')
{
$detailsToCheck = ['type' => $type];