From 4bb1a88de811b4dbc7ba518659a515583b886e88 Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Fri, 11 Nov 2022 16:06:09 -0500 Subject: [PATCH] Add expectation to mocked version to fix assertion counts --- tests/TestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 41626799..84bcd134 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -37,7 +37,7 @@ protected function setUp(): void $uses = array_flip(class_uses_recursive(static::class)); if ($this->shouldFakeVersion) { - \Facades\Statamic\Version::shouldReceive('get')->andReturn('3.0.0-testing'); + \Facades\Statamic\Version::shouldReceive('get')->zeroOrMoreTimes()->andReturn('3.0.0-testing'); $this->addToAssertionCount(-1); // Dont want to assert this }