Skip to content

Commit 2cfd0d7

Browse files
[5.x] Add Nav::clearCachedUrls expectation to AddonTestCase (#13396)
1 parent e85a72c commit 2cfd0d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Testing/AddonTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ protected function setUp(): void
3636
$this->addToAssertionCount(-1);
3737

3838
\Statamic\Facades\CP\Nav::shouldReceive('build')->zeroOrMoreTimes()->andReturn(collect());
39-
$this->addToAssertionCount(-1); // Dont want to assert this
39+
\Statamic\Facades\CP\Nav::shouldReceive('clearCachedUrls')->zeroOrMoreTimes();
40+
$this->addToAssertionCount(-2); // Dont want to assert this
4041
}
4142

4243
protected function tearDown(): void

0 commit comments

Comments
 (0)