protected function setUp()
 {
     parent::setUp();
     /* re-create select and bind it to connection */
     $select = $this->_createSelect();
     $this->mConn->shouldReceive('select')->andReturn($select);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mRepoTypeAsset = $this->_mock(\Praxigento\Accounting\Repo\Entity\Type\IAsset::class);
     $this->obj = new Module($this->mResource, $this->mRepoTypeAsset);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->mRepoGeneric = $this->_mockRepoGeneric();
     $this->mRepoAccount = $this->_mock(\Praxigento\Accounting\Repo\Entity\IAccount::class);
     $this->repo = new Module($this->mResource, $this->mRepoGeneric, $this->mRepoAccount);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mFactorySelect = $this->_mock(Operation\SelectFactory::class);
     /** create object to test */
     $this->obj = new Operation($this->mResource, $this->mFactorySelect);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mRepoWrhsAggWarehouse = $this->_mock(WrhsRepoAggWarehouse::class);
     /** setup mocks for constructor */
     /** create object to test */
     $this->obj = new SelectFactory($this->mResource, $this->mRepoWrhsAggWarehouse);
 }
 public function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mRepoCalc = $this->_mock(\Praxigento\BonusBase\Repo\Entity\ICalculation::class);
     $this->mRepoPeriod = $this->_mock(\Praxigento\BonusBase\Repo\Entity\IPeriod::class);
     $this->mToolDate = $this->_mock(\Praxigento\Core\Tool\IDate::class);
     /** create object to test */
     $this->obj = new Module($this->mResource, $this->mRepoCalc, $this->mRepoPeriod, $this->mToolDate);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mFactorySelect = $this->_mock(SaleOrderItem\SelectFactory::class);
     /** reset args. to create mock of the tested object */
     $this->objArgs = [$this->mResource, $this->mFactorySelect];
     /** create object to test */
     $this->obj = new SaleOrderItem($this->mResource, $this->mFactorySelect);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mManObj = $this->_mockObjectManager();
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mRepoGeneric = $this->_mockRepoGeneric();
     $this->mRepoEntityWarehouse = $this->_mock(\Praxigento\Warehouse\Repo\Entity\IWarehouse::class);
     $this->mFactorySelect = $this->_mock(Warehouse\SelectFactory::class);
     /** create object to test */
     $this->obj = new Warehouse($this->mManObj, $this->mManTrans, $this->mResource, $this->mRepoGeneric, $this->mRepoEntityWarehouse, $this->mFactorySelect);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mManObj = $this->_mockObjectManager();
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mRepoWrhsAggWarehouse = $this->_mock(WrhsRepoAggWarehouse::class);
     $this->mRepoEntityWarehouse = $this->_mock(RepoEntityWarehouse::class);
     $this->mFactorySelect = $this->_mock(Warehouse\SelectFactory::class);
     /** setup mocks for constructor */
     /** create object to test */
     $this->obj = new Warehouse($this->mManObj, $this->mManTrans, $this->mResource, $this->mRepoWrhsAggWarehouse, $this->mRepoEntityWarehouse, $this->mFactorySelect);
 }
Esempio n. 10
0
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mManObj = $this->_mockObjectManager();
     $this->mManTrans = $this->_mockTransactionManager();
     $this->mRepoWrhsEntityLot = $this->_mock(IRepoWrhsEntityLot::class);
     $this->mRepoEntityLot = $this->_mock(IRepoEntityLot::class);
     $this->mFactorySelect = $this->_mock(Lot\SelectFactory::class);
     /** reset args. to create mock of the tested object */
     $this->objArgs = [$this->mManObj, $this->mManTrans, $this->mResource, $this->mRepoWrhsEntityLot, $this->mRepoEntityLot, $this->mFactorySelect];
     /** create object to test */
     $this->obj = new Lot($this->mManObj, $this->mManTrans, $this->mResource, $this->mRepoWrhsEntityLot, $this->mRepoEntityLot, $this->mFactorySelect);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create object to test */
     $this->obj = new Generic($this->mResource);
 }
 protected function setUp()
 {
     parent::setUp();
     /** create object to test */
     $this->obj = new SelectFactory($this->mResource);
 }
Esempio n. 13
0
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mRepoGeneric = m::mock(\Praxigento\Core\Repo\IGeneric::class);
 }
Esempio n. 14
0
 protected function setUp()
 {
     parent::setUp();
     /** create object to test */
     $this->obj = new ChildToTestCrud($this->mResource);
 }