Skip to content

Commit 7fdc919

Browse files
authored
Add expectation to mocked version to fix assertion counts (#88)
1 parent fd7120c commit 7fdc919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function setUp(): void
3737
$uses = array_flip(class_uses_recursive(static::class));
3838

3939
if ($this->shouldFakeVersion) {
40-
\Facades\Statamic\Version::shouldReceive('get')->andReturn('3.0.0-testing');
40+
\Facades\Statamic\Version::shouldReceive('get')->zeroOrMoreTimes()->andReturn('3.0.0-testing');
4141
$this->addToAssertionCount(-1); // Dont want to assert this
4242
}
4343

0 commit comments

Comments
 (0)