Example #1
0
 /**
  * @param $attributeCode
  * @param $data
  * @dataProvider validateDefaultSortException
  * @expectedException \Magento\Framework\Exception\LocalizedException
  */
 public function testValidateDefaultSortException($attributeCode, $data)
 {
     $this->_attribute->expects($this->any())->method('getName')->will($this->returnValue($attributeCode));
     $this->_scopeConfig->expects($this->any())->method('getValue')->will($this->returnValue('another value'));
     $object = new \Magento\Framework\DataObject($data);
     $this->_model->validate($object);
 }