Skip to content

Commit d807e60

Browse files
committed
Fix tests
1 parent 982e05e commit d807e60

File tree

2 files changed

+2
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Category
  • lib/internal/Magento/Framework/Mview

2 files changed

+2
-0
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/Indexer/Category/ProductTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ public function testCatalogCategoryProductIndexInvalidateAfterDelete(): void
255255
*/
256256
public function testCatalogCategoryProductIndexInvalidateAfterChangeProductPosition(): void
257257
{
258+
$this->indexer->reindexAll();
258259
$this->indexer->setScheduled(true);
259260
$indexerShouldBeValid = $this->indexer->isValid();
260261

lib/internal/Magento/Framework/Mview/View.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ public function unsubscribe()
230230
$this->getChangelog()->drop();
231231
// Reset version_id
232232
$this->getState()->setVersionId(0);
233+
// phpcs:disable Magento2.CodeAnalysis.EmptyBlock.DetectedCatch
233234
} catch (ChangelogTableNotExistsException $e) {
234235
// Silently ignore this error
235236
}

0 commit comments

Comments
 (0)