Skip to content

Commit

Permalink
Add expectation to mocked version to fix assertion counts (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Nov 11, 2022
1 parent fd7120c commit 7fdc919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7fdc919

Please sign in to comment.