protected function setUp()
 {
     parent::setUp();
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mRepoAcc = $this->_mock(\Praxigento\Accounting\Repo\Entity\IAccount::class);
     $this->mRepoTrans = $this->_mock(\Praxigento\Accounting\Repo\Entity\ITransaction::class);
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mManTrans, $this->mRepoAcc, $this->mRepoTrans);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->mToolDate = $this->_mock(\Praxigento\Core\Tool\IDate::class);
     $this->mCallAccount = $this->_mock(\Praxigento\Accounting\Service\IAccount::class);
     $this->mCallOper = $this->_mock(\Praxigento\Accounting\Service\IOperation::class);
     $this->mRepoMod = $this->_mock(\Praxigento\Wallet\Repo\IModule::class);
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mToolDate, $this->mCallAccount, $this->mCallOper, $this->mRepoMod);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mRepoOper = $this->_mock(\Praxigento\Accounting\Repo\Entity\IOperation::class);
     $this->mRepoTypeOper = $this->_mock(\Praxigento\Accounting\Repo\Entity\Type\IOperation::class);
     $this->mSubAdd = $this->_mock(Sub\Add::class);
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mManTrans, $this->mRepoOper, $this->mRepoTypeOper, $this->mSubAdd);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mRepoBonusCompress = $this->_mock(\Praxigento\BonusBase\Repo\Entity\ICompress::class);
     $this->mCallDownlineMap = $this->_mock(\Praxigento\Downline\Service\IMap::class);
     $this->mCallDownlineSnap = $this->_mock(\Praxigento\Downline\Service\ISnap::class);
     $this->mToolDownlineTree = $this->_mock(\Praxigento\Downline\Tool\ITree::class);
     $this->call = new Call($this->mLogger, $this->mManObj, $this->mManTrans, $this->mRepoBonusCompress, $this->mCallDownlineMap, $this->mCallDownlineSnap, $this->mToolDownlineTree);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mRepoAccount = $this->_mock(\Praxigento\Accounting\Repo\Entity\IAccount::class);
     $this->mRepoTypeAsset = $this->_mock(\Praxigento\Accounting\Repo\Entity\Type\IAsset::class);
     $this->mRepoMod = $this->_mock(\Praxigento\Accounting\Repo\IModule::class);
     /** setup mocks for constructor */
     /** create object to test */
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mRepoAccount, $this->mRepoTypeAsset, $this->mRepoMod);
 }
Exemplo n.º 6
0
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mToolDate = $this->_mock(\Praxigento\Core\Tool\IDate::class);
     $this->mCallAccount = $this->_mock(\Praxigento\Accounting\Service\IAccount::class);
     $this->mCallOperation = $this->_mock(\Praxigento\Accounting\Service\IOperation::class);
     $this->mRepoMod = $this->_mock(\Praxigento\Pv\Repo\IModule::class);
     /** reset args. to create mock of the tested object */
     $this->objArgs = [$this->mLogger, $this->mManObj, $this->mToolDate, $this->mCallAccount, $this->mCallOperation, $this->mRepoMod];
     /** create object to test */
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mToolDate, $this->mCallAccount, $this->mCallOperation, $this->mRepoMod);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mToolPeriod = $this->_mock(\Praxigento\Core\Tool\IPeriod::class);
     $this->mRepoChange = $this->_mock(\Praxigento\Downline\Repo\Entity\IChange::class);
     $this->mRepoSnap = $this->_mock(\Praxigento\Downline\Repo\Entity\ISnap::class);
     $this->mSubCalc = $this->_mock(Sub\CalcSimple::class);
     /** reset args. to create mock of the tested object */
     $this->objArgs = [$this->mLogger, $this->mManObj, $this->mManTrans, $this->mToolPeriod, $this->mRepoChange, $this->mRepoSnap, $this->mSubCalc];
     /** create object to test */
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mManTrans, $this->mToolPeriod, $this->mRepoChange, $this->mRepoSnap, $this->mSubCalc);
 }
Exemplo n.º 8
0
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mCallAccount = $this->_mock(\Praxigento\Accounting\Service\IAccount::class);
     $this->mCallOperation = $this->_mock(\Praxigento\Accounting\Service\IOperation::class);
     $this->mRepoMod = $this->_mock(\Praxigento\Pv\Repo\IModule::class);
     $this->mRepoSale = $this->_mock(\Praxigento\Pv\Repo\Entity\ISale::class);
     $this->mRepoSaleItem = $this->_mock(\Praxigento\Pv\Repo\Entity\Sale\IItem::class);
     $this->mRepoStockItem = $this->_mock(\Praxigento\Pv\Repo\Entity\Stock\IItem::class);
     $this->mToolDate = $this->_mock(\Praxigento\Core\Tool\IDate::class);
     /** create object to test */
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mManTrans, $this->mCallAccount, $this->mCallOperation, $this->mRepoMod, $this->mRepoSale, $this->mRepoSaleItem, $this->mRepoStockItem, $this->mToolDate);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mRepoCalc = $this->_mock(\Praxigento\BonusBase\Repo\Entity\ICalculation::class);
     $this->mRepoPeriod = $this->_mock(\Praxigento\BonusBase\Repo\Entity\IPeriod::class);
     $this->mRepoTypeCalc = $this->_mock(\Praxigento\BonusBase\Repo\Entity\Type\ICalc::class);
     $this->mRepoService = $this->_mock(\Praxigento\BonusBase\Repo\Service\IModule::class);
     $this->mToolPeriod = $this->_mock(\Praxigento\Core\Tool\IPeriod::class);
     $this->mToolDate = $this->_mock(\Praxigento\Core\Tool\IDate::class);
     $this->mSubDepended = $this->_mock(\Praxigento\BonusBase\Service\Period\Sub\Depended::class);
     $this->mSubPvBased = $this->_mock(\Praxigento\BonusBase\Service\Period\Sub\PvBased::class);
     /** reset args. to create mock of the tested object */
     $this->objArgs = [$this->mLogger, $this->mManObj, $this->mManTrans, $this->mRepoCalc, $this->mRepoPeriod, $this->mRepoTypeCalc, $this->mRepoService, $this->mToolPeriod, $this->mToolDate, $this->mSubDepended, $this->mSubPvBased];
     /** create object to test */
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mManTrans, $this->mRepoCalc, $this->mRepoPeriod, $this->mRepoTypeCalc, $this->mRepoService, $this->mToolPeriod, $this->mToolDate, $this->mSubDepended, $this->mSubPvBased);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mToolDate = $this->_mock(\Praxigento\Core\Tool\IDate::class);
     $this->mToolPeriod = $this->_mock(\Praxigento\Core\Tool\IPeriod::class);
     $this->mRepoMod = $this->_mock(\Praxigento\Accounting\Repo\IModule::class);
     $this->mRepoAccount = $this->_mock(\Praxigento\Accounting\Repo\Entity\IAccount::class);
     $this->mRepoBalance = $this->_mock(\Praxigento\Accounting\Repo\Entity\IBalance::class);
     $this->mRepoOperation = $this->_mock(\Praxigento\Accounting\Repo\Entity\IOperation::class);
     $this->mRepoTransaction = $this->_mock(\Praxigento\Accounting\Repo\Entity\ITransaction::class);
     $this->mRepoTypeAsset = $this->_mock(\Praxigento\Accounting\Repo\Entity\Type\IAsset::class);
     $this->mRepoTypeOper = $this->_mock(\Praxigento\Accounting\Repo\Entity\Type\IOperation::class);
     $this->mRepoLogChangeAdmin = $this->_mock(\Praxigento\Accounting\Repo\Entity\Log\Change\IAdmin::class);
     $this->mSubCalcSimple = $this->_mock(Sub\CalcSimple::class);
     /** reset args. to create mock of the tested object */
     $this->objArgs = [$this->mLogger, $this->mManObj, $this->mManTrans, $this->mToolDate, $this->mToolPeriod, $this->mRepoMod, $this->mRepoAccount, $this->mRepoBalance, $this->mRepoOperation, $this->mRepoTransaction, $this->mRepoTypeAsset, $this->mRepoTypeOper, $this->mRepoLogChangeAdmin, $this->mSubCalcSimple];
     /** create object to test */
     $this->obj = new Call($this->mLogger, $this->mManObj, $this->mManTrans, $this->mToolDate, $this->mToolPeriod, $this->mRepoMod, $this->mRepoAccount, $this->mRepoBalance, $this->mRepoOperation, $this->mRepoTransaction, $this->mRepoTypeAsset, $this->mRepoTypeOper, $this->mRepoLogChangeAdmin, $this->mSubCalcSimple);
 }
Exemplo n.º 11
0
 protected function setUp()
 {
     parent::setUp();
     /** create object to test */
     $this->obj = new ChildToTest($this->mLogger, $this->mManObj);
 }