mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
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:
parent
ba075b46f9
commit
ffdfdc7449
@ -62,7 +62,7 @@ abstract class TestCase extends BaseTestCase
|
|||||||
* Assert that an activity entry exists of the given key.
|
* Assert that an activity entry exists of the given key.
|
||||||
* Checks the activity belongs to the given entity if provided.
|
* 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];
|
$detailsToCheck = ['type' => $type];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user