public function testClear() { $this->addItems(); $expected = []; $result = $this->listStatus->clear(); $this->assertInstanceOf('\\Magento\\Sales\\Model\\Status\\ListStatus', $result); $this->assertEquals($expected, $result->getItems()); }
/** * 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; }