示例#1
0
 /**
  * @dataProvider filtersDataProvider
  * @magentoDataFixture Magento/Framework/Search/_files/products.php
  */
 public function testLoadWithFilterNoFilters($filters, $expectedCount)
 {
     // addFieldsToFilter will load filters,
     //   then loadWithFilter will trigger _renderFiltersBefore code in Advanced/Collection
     $this->advancedCollection->addFieldsToFilter([$filters])->loadWithFilter();
     $items = $this->advancedCollection->getItems();
     $this->assertCount($expectedCount, $items);
 }