Skip to content

Commit 67cb7ae

Browse files
committed
MAGE-1112: updated product indexing test
1 parent 8e77395 commit 67cb7ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Test/Integration/Indexing/Product/ProductsIndexingTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testDefaultIndexableAttributes()
7070
'thumbnail_url',
7171
'image_url',
7272
'in_stock',
73-
'price',
73+
//'price', since version 3.17.0, the price attribute is not mandatory if it's not present in any attributes list
7474
'type_id',
7575
'algoliaLastUpdateAtCET',
7676
'categoryIds',
@@ -85,6 +85,8 @@ public function testDefaultIndexableAttributes()
8585
unset($hit[$attribute]);
8686
}
8787

88+
$this->assertArrayNotHasKey('price', $hit, 'Record has a price attribute but it should not');
89+
8890
$extraAttributes = implode(', ', array_keys($hit));
8991
$this->assertEmpty($hit, 'Extra products attributes (' . $extraAttributes . ') are indexed and should not be.');
9092
}

0 commit comments

Comments
 (0)