public function test_reset() { /** === Test Data === */ $DATESTAMP_FROM = '20151123'; $ROWS_DELETED = 5; /** === Setup Mocks === */ // $rows = $this->_repoBalance->delete($where); $this->mRepoBalance->shouldReceive('delete')->once()->andReturn($ROWS_DELETED); /** === Call and asserts === */ $req = new Request\Reset(); $req->setDateFrom($DATESTAMP_FROM); $res = $this->obj->reset($req); $this->assertTrue($res->isSucceed()); $this->assertEquals($ROWS_DELETED, $res->getRowsDeleted()); }