File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,6 @@ public function remove($searchableEntities): array
72
72
$ data = [];
73
73
74
74
foreach ($ searchableEntities as $ entity ) {
75
- $ searchableArray = $ entity ->getSearchableArray ();
76
- if (0 === \count ($ searchableArray )) {
77
- continue ;
78
- }
79
75
$ indexUid = $ entity ->getIndexUid ();
80
76
81
77
if (!isset ($ data [$ indexUid ])) {
Original file line number Diff line number Diff line change @@ -39,13 +39,9 @@ public function testIndexingEmptyEntity(): void
39
39
null
40
40
);
41
41
42
- // Index
43
- $ result = $ this ->engine ->index ($ searchableImage );
44
- $ this ->assertEmpty ($ result );
45
-
46
42
// Remove
47
43
$ result = $ this ->engine ->remove ($ searchableImage );
48
- $ this ->assertEmpty ( $ result );
44
+ $ this ->assertArrayHasKey ( ' sf_phpunit__image ' , $ result );
49
45
50
46
// Update
51
47
$ result = $ this ->engine ->index ($ searchableImage );
You can’t perform that action at this time.
0 commit comments