Skip to content

Commit d8c241c

Browse files
committed
dependencies
1 parent 3036c36 commit d8c241c

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@
1414
}],
1515
"require": {
1616
"php": ">=7.1",
17-
"teamtnt/tntsearch": "2.*",
17+
"teamtnt/tntsearch": "2.7.0",
1818
"laravel/scout": "7.*|^8.0|^8.3",
1919
"illuminate/bus": "~5.4|^6.0|^7.0|^8.0",
2020
"illuminate/contracts": "~5.4|^6.0|^7.0|^8.0",
21-
"illuminate/database": "~5.4|^6.0|^7.0|^8.0",
2221
"illuminate/pagination": "~5.4|^6.0|^7.0|^8.0",
2322
"illuminate/queue": "~5.4|^6.0|^7.0|^8.0",
2423
"illuminate/support": "~5.4|^6.0|^7.0|^8.0"
2524
},
2625
"require-dev": {
2726
"mockery/mockery": "^1.0",
28-
"phpunit/phpunit": "^8.0|^9.3"
27+
"phpunit/phpunit": "^7.0|^8.0|^9.0"
2928
},
3029
"autoload": {
3130
"psr-4": {

tests/TNTSearchEngineTest.php

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,6 @@ protected function tearDown(): void
1414
m::close();
1515
}
1616

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-
4017
public function testApplyingFilters()
4118
{
4219
$tnt = new TNTSearch;

0 commit comments

Comments
 (0)