public function test_cacheReset() { /** === Test Data === */ /** === Setup Mocks === */ // $this->_callAccount->cacheReset(); $this->mCallAccount->shouldReceive('cacheReset')->once(); /** === Call and asserts === */ $this->obj->cacheReset(); }
public function test_main() { $this->_logger->debug('Story01 in PV Integration tests is started.'); $this->_callSale->cacheReset(); $this->_conn->beginTransaction(); try { $this->_createMageCustomer(); $this->_createMageProducts(); $this->_createWarehousePv(); $this->_createMageSaleOrder(); $this->_savePv(); $this->_accountPv(); $this->_checkOperation(); } finally { // $this->_conn->commit(); $this->_conn->rollBack(); } $this->_logger->debug('Story01 in PV Integration tests is completed, all transactions are rolled back.'); }