Skip to content

Commit

Permalink
dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nticaric committed Mar 11, 2021
1 parent 3036c36 commit d8c241c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@
}],
"require": {
"php": ">=7.1",
"teamtnt/tntsearch": "2.*",
"teamtnt/tntsearch": "2.7.0",
"laravel/scout": "7.*|^8.0|^8.3",
"illuminate/bus": "~5.4|^6.0|^7.0|^8.0",
"illuminate/contracts": "~5.4|^6.0|^7.0|^8.0",
"illuminate/database": "~5.4|^6.0|^7.0|^8.0",
"illuminate/pagination": "~5.4|^6.0|^7.0|^8.0",
"illuminate/queue": "~5.4|^6.0|^7.0|^8.0",
"illuminate/support": "~5.4|^6.0|^7.0|^8.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^8.0|^9.3"
"phpunit/phpunit": "^7.0|^8.0|^9.0"
},
"autoload": {
"psr-4": {
Expand Down
23 changes: 0 additions & 23 deletions tests/TNTSearchEngineTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,6 @@ protected function tearDown(): void
m::close();
}

public function test_update_adds_objects_to_index()
{
$client = m::mock('TeamTNT\TNTSearch\TNTSearch');
$client->shouldReceive('createIndex')
->with('table.index')
->andReturn($index = m::mock('TeamTNT\TNTSearch\Indexer\TNTIndexer'));
$index->shouldReceive('setDatabaseHandle');
$index->shouldReceive('setPrimaryKey');
$index->shouldReceive('query');
$index->shouldReceive('run');

$client->shouldReceive('selectIndex');
$client->shouldReceive('getIndex')
->andReturn($index);

$index->shouldReceive('indexBeginTransaction');
$index->shouldReceive('update');
$index->shouldReceive('indexEndTransaction');

$engine = new TNTSearchEngine($client);
$engine->update(Collection::make([new TNTSearchEngineTestModel()]));
}

public function testApplyingFilters()
{
$tnt = new TNTSearch;
Expand Down

0 comments on commit d8c241c

Please sign in to comment.