From ffdfdc7449a059c9d8a69ad2fa19d43a758c7794 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sat, 18 Sep 2021 21:29:42 +0100 Subject: [PATCH] Fixed dodgy test helper signature causing tests to fail Just needed some argument defaults to make them optional for existing uses. --- tests/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];