Skip to content

Commit 91436fa

Browse files
committed
Add support for Laravel 7
1 parent fef81ca commit 91436fa

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"email": "[email protected]"
99
}],
1010
"require": {
11-
"php": "^7.1.3",
12-
"laravel/scout": "7.*",
13-
"illuminate/database": "~5.4|^6.0",
14-
"illuminate/support": "~5.4|^6.0"
11+
"php": "^7.2",
12+
"laravel/scout": "8.*",
13+
"illuminate/database": "^6.0|^7.0",
14+
"illuminate/support": "^6.0|^7.0"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "~6.0",
17+
"phpunit/phpunit": "^8.0",
1818
"mockery/mockery": "~1.0"
1919
},
2020
"autoload": {

phpunit.xml.dist

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Package Test Suite">

tests/Engines/ArrayEngineTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function it_can_update_soft_deletable_records_in_the_index()
182182
'scoutKey' => 234,
183183
];
184184

185-
$this->assertEquals(['foo' => 'bar', 'objectID' => '123', 'scoutKey' => 123, 'deleted_at' => '2019-01-01 12:00:00', '__soft_deleted' => 1], $engine->search($builder1)['hits'][0]);
185+
$this->assertEquals(['foo' => 'bar', 'objectID' => '123', 'scoutKey' => 123, 'deleted_at' => '2019-01-01T12:00:00.000000Z', '__soft_deleted' => 1], $engine->search($builder1)['hits'][0]);
186186
$this->assertEquals(['foo' => 'bar', 'objectID' => '234', 'scoutKey' => 234, '__soft_deleted' => 0], $engine->search($builder2)['hits'][0]);
187187
}
188188

@@ -207,7 +207,7 @@ public function it_will_not_push_soft_delete_metadata_when_updating_if_its_not_e
207207
'scoutKey' => 234,
208208
];
209209

210-
$this->assertEquals(['foo' => 'bar', 'objectID' => '123', 'scoutKey' => 123, 'deleted_at' => '2019-01-01 12:00:00'], $engine->search($builder1)['hits'][0]);
210+
$this->assertEquals(['foo' => 'bar', 'objectID' => '123', 'scoutKey' => 123, 'deleted_at' => '2019-01-01T12:00:00.000000Z'], $engine->search($builder1)['hits'][0]);
211211
$this->assertEquals(['foo' => 'bar', 'objectID' => '234', 'scoutKey' => 234], $engine->search($builder2)['hits'][0]);
212212
}
213213

0 commit comments

Comments
 (0)