Skip to content

Commit cf9e61f

Browse files
committed
MC-18009: Disabled Products Do Not Appear in Search Results of Link Attribute
- update tests
1 parent f641a98 commit cf9e61f

File tree

1 file changed

+2
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product

1 file changed

+2
-0
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Controller/Adminhtml/Product/SearchTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function testExecuteNotVisibleIndividuallyProducts() : void
6060
$responseBody = $this->getResponse()->getBody();
6161
$jsonResponse = json_decode($responseBody);
6262
$this->assertEquals(1, $jsonResponse['total']);
63+
$this->assertCount(1, $jsonResponse['options']);
6364
}
6465

6566
/**
@@ -75,5 +76,6 @@ public function testExecuteEnabledAndDisabledProducts() : void
7576
$responseBody = $this->getResponse()->getBody();
7677
$jsonResponse = json_decode($responseBody);
7778
$this->assertEquals(7, $jsonResponse['total']);
79+
$this->assertCount(7, $jsonResponse['options']);
7880
}
7981
}

0 commit comments

Comments
 (0)