Skip to content

Commit ea54bb4

Browse files
committed
Fix phpunit warning
1 parent 2aa895c commit ea54bb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/TestCase/Model/Table/RequestTableTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ public function testGc()
8383
{
8484
/** @var \PHPUnit\Framework\MockObject\MockObject&\DebugKit\Model\Table\RequestsTable $requestsTableMock */
8585
$requestsTableMock = $this->getMockForModel('DebugKit.Requests', ['shouldGc']);
86-
$requestsTableMock->method('shouldGc')
86+
$requestsTableMock
87+
->expects($this->atLeastOnce())
88+
->method('shouldGc')
8789
->willReturn(true);
8890

8991
$data = array_fill(0, 10, [

0 commit comments

Comments
 (0)