Esempio n. 1
0
 /**
  * @expectedException \Magento\Framework\Exception
  * @expectedExceptionMessage When passing in a field array there must be a matching condition array.
  */
 public function testAddToFilterException()
 {
     $this->collection->addFieldToFilter(array(), 'not_array');
 }
 /**
  * @expectedException \Magento\Framework\Exception\LocalizedException
  * @expectedExceptionMessage When passing in a field array there must be a matching condition array.
  */
 public function testAddToFilterExceptionArrayNotSymmetric()
 {
     $this->collection->addFieldToFilter(['field2', 'field2'], ['condition1']);
 }