Example #1
0
 /**
  * Test loadWithFilter()
  * @return void
  */
 public function testLoadWithFilter()
 {
     $this->assertInstanceOf('Magento\\Framework\\Data\\Collection', $this->_model->loadWithFilter());
     $this->assertEmpty($this->_model->getItems());
     $this->_model->addItem(new \Magento\Framework\Object());
     $this->_model->addItem(new \Magento\Framework\Object());
     $this->assertCount(2, $this->_model->loadWithFilter()->getItems());
 }