File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 5
5
use Illuminate \Database \Eloquent \Factories \Factory ;
6
6
use Illuminate \Database \Eloquent \Factories \HasFactory ;
7
7
use Illuminate \Database \Eloquent \Model ;
8
- use Limenet \LaravelElasticaBridge \Index \IndexInterface ;
9
8
use Limenet \LaravelElasticaBridge \Model \ElasticsearchableInterface ;
10
9
use Limenet \LaravelElasticaBridge \Model \ElasticsearchableTrait ;
11
10
use Limenet \LaravelElasticaBridge \Tests \Database \Factories \ProductFactory ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function setUp():void
25
25
public function convert_to_elastica_document_customized ()
26
26
{
27
27
Customer::all ()
28
- ->filter (fn (Customer $ customer ):bool => $ customer ->shouldIndex ($ this ->customerIndex ))
28
+ ->filter (fn (Customer $ customer ):bool => $ customer ->shouldIndex ($ this ->customerIndex ))
29
29
->each (function (Customer $ customer ):void {
30
30
$ document = $ customer ->toElasticaDocument ($ this ->customerIndex );
31
31
$ this ->assertInstanceOf (Document::class, $ document );
@@ -45,7 +45,7 @@ public function convert_to_elastica_document_customized()
45
45
public function convert_to_elastica_document_default ()
46
46
{
47
47
Product::all ()
48
- ->filter (fn (Product $ product ):bool => $ product ->shouldIndex ($ this ->productIndex ))
48
+ ->filter (fn (Product $ product ):bool => $ product ->shouldIndex ($ this ->productIndex ))
49
49
->each (function (Product $ product ):void {
50
50
$ document = $ product ->toElasticaDocument ($ this ->productIndex );
51
51
$ this ->assertInstanceOf (Document::class, $ document );
You can’t perform that action at this time.
0 commit comments