コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function getCollection()
 {
     $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getCollection');
     if (!$pluginInfo) {
         return parent::getCollection();
     } else {
         return $this->___callPlugins('getCollection', func_get_args(), $pluginInfo);
     }
 }
コード例 #2
0
ファイル: WebsiteTest.php プロジェクト: aiesh/magento2
 public function testCollection()
 {
     $collection = $this->_model->getCollection()->joinGroupAndStore()->addIdFilter(1);
     $this->assertEquals(1, count($collection->getItems()));
 }