File tree Expand file tree Collapse file tree 2 files changed +2
-26
lines changed Expand file tree Collapse file tree 2 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 14
14
}],
15
15
"require" : {
16
16
"php" : " >=7.1" ,
17
- "teamtnt/tntsearch" : " 2.* " ,
17
+ "teamtnt/tntsearch" : " 2.7.0 " ,
18
18
"laravel/scout" : " 7.*|^8.0|^8.3" ,
19
19
"illuminate/bus" : " ~5.4|^6.0|^7.0|^8.0" ,
20
20
"illuminate/contracts" : " ~5.4|^6.0|^7.0|^8.0" ,
21
- "illuminate/database" : " ~5.4|^6.0|^7.0|^8.0" ,
22
21
"illuminate/pagination" : " ~5.4|^6.0|^7.0|^8.0" ,
23
22
"illuminate/queue" : " ~5.4|^6.0|^7.0|^8.0" ,
24
23
"illuminate/support" : " ~5.4|^6.0|^7.0|^8.0"
25
24
},
26
25
"require-dev" : {
27
26
"mockery/mockery" : " ^1.0" ,
28
- "phpunit/phpunit" : " ^8.0|^9.3 "
27
+ "phpunit/phpunit" : " ^7.0|^ 8.0|^9.0 "
29
28
},
30
29
"autoload" : {
31
30
"psr-4" : {
Original file line number Diff line number Diff line change @@ -14,29 +14,6 @@ protected function tearDown(): void
14
14
m::close ();
15
15
}
16
16
17
- public function test_update_adds_objects_to_index ()
18
- {
19
- $ client = m::mock ('TeamTNT\TNTSearch\TNTSearch ' );
20
- $ client ->shouldReceive ('createIndex ' )
21
- ->with ('table.index ' )
22
- ->andReturn ($ index = m::mock ('TeamTNT\TNTSearch\Indexer\TNTIndexer ' ));
23
- $ index ->shouldReceive ('setDatabaseHandle ' );
24
- $ index ->shouldReceive ('setPrimaryKey ' );
25
- $ index ->shouldReceive ('query ' );
26
- $ index ->shouldReceive ('run ' );
27
-
28
- $ client ->shouldReceive ('selectIndex ' );
29
- $ client ->shouldReceive ('getIndex ' )
30
- ->andReturn ($ index );
31
-
32
- $ index ->shouldReceive ('indexBeginTransaction ' );
33
- $ index ->shouldReceive ('update ' );
34
- $ index ->shouldReceive ('indexEndTransaction ' );
35
-
36
- $ engine = new TNTSearchEngine ($ client );
37
- $ engine ->update (Collection::make ([new TNTSearchEngineTestModel ()]));
38
- }
39
-
40
17
public function testApplyingFilters ()
41
18
{
42
19
$ tnt = new TNTSearch ;
You can’t perform that action at this time.
0 commit comments