Fixed dodgy test helper signature causing tests to fail

Just needed some argument defaults to make them optional for existing
uses.
This commit is contained in:
Dan Brown 2021-09-18 21:29:42 +01:00
parent ba075b46f9
commit ffdfdc7449
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View File

@ -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];