Skip to content

Commit 4cee426

Browse files
authored
Fixed tests.
1 parent 9480e9e commit 4cee426

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/SearchTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public function testUpdate()
8484
})->once();
8585

8686
$luceneIndex->shouldReceive('delete')->with(10)->once();
87+
$luceneIndex->shouldReceive('optimize')->twice();
8788

8889
$index = $this->createIndex();
8990

@@ -108,6 +109,7 @@ public function testDelete()
108109
});
109110

110111
$luceneIndex->shouldReceive('delete')->with(10)->once();
112+
$luceneIndex->shouldReceive('optimize')->once();
111113

112114
$index = $this->createIndex();
113115
$index->delete($this->model);

0 commit comments

Comments
 (0)