diff --git a/src/Testing/AddonTestCase.php b/src/Testing/AddonTestCase.php index a77cc1e47e2..7d7d3faf185 100644 --- a/src/Testing/AddonTestCase.php +++ b/src/Testing/AddonTestCase.php @@ -36,7 +36,8 @@ protected function setUp(): void $this->addToAssertionCount(-1); \Statamic\Facades\CP\Nav::shouldReceive('build')->zeroOrMoreTimes()->andReturn(collect()); - $this->addToAssertionCount(-1); // Dont want to assert this + \Statamic\Facades\CP\Nav::shouldReceive('clearCachedUrls')->zeroOrMoreTimes(); + $this->addToAssertionCount(-2); // Dont want to assert this } protected function tearDown(): void