Exemple #1
0
 public function testClear()
 {
     $this->addItems();
     $expected = [];
     $result = $this->listStatus->clear();
     $this->assertInstanceOf('\\Magento\\Sales\\Model\\Status\\ListStatus', $result);
     $this->assertEquals($expected, $result->getItems());
 }
Exemple #2
0
 /**
  * Clears list of errors, associated with this quote item.
  * Also automatically removes error-flag from oneself.
  *
  * @return $this
  */
 protected function _clearErrorInfo()
 {
     $this->_errorInfos->clear();
     $this->_setHasError(false);
     return $this;
 }