We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Nav::clearCachedUrls
AddonTestCase
1 parent e85a72c commit 2cfd0d7Copy full SHA for 2cfd0d7
1 file changed
src/Testing/AddonTestCase.php
@@ -36,7 +36,8 @@ protected function setUp(): void
36
$this->addToAssertionCount(-1);
37
38
\Statamic\Facades\CP\Nav::shouldReceive('build')->zeroOrMoreTimes()->andReturn(collect());
39
- $this->addToAssertionCount(-1); // Dont want to assert this
+ \Statamic\Facades\CP\Nav::shouldReceive('clearCachedUrls')->zeroOrMoreTimes();
40
+ $this->addToAssertionCount(-2); // Dont want to assert this
41
}
42
43
protected function tearDown(): void
0 commit comments