protected function setUp() { parent::setUp(); /** create mocks */ $this->mFactoryTrans = $this->_mock(\Praxigento\Core\Transaction\Business\IFabrique::class); $this->obj = new Manager($this->mFactoryTrans); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mLogger = $this->_mockLogger(); $this->mManObj = $this->_mockObjectManager(); }
protected function setUp() { parent::setUp(); $repoDownlineCustomer = ObjectManager::getInstance()->get(\Praxigento\Downline\Repo\Entity\ICustomer::class); /** create object to test */ $this->obj = new Module($repoDownlineCustomer); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mLogger = $this->_mockLogger(); $this->obj = new Item($this->mLogger); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mManObj = $this->_mock(\Magento\Framework\ObjectManagerInterface::class); $this->obj = new Factory($this->mManObj); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mTypeProcessor = $this->_mock(\Magento\Framework\Reflection\TypeProcessor::class); /** create object to test */ $this->obj = new \Praxigento\Core\Reflection\Tool\Type($this->mTypeProcessor); }
public function setUp() { parent::setUp(); /** create mocks */ $this->mRepoWrhs = $this->_mock(\Praxigento\Warehouse\Repo\Entity\IWarehouse::class); /** create object to test */ $this->obj = new Repo($this->mRepoWrhs); }
public function setUp() { parent::setUp(); /** create mocks */ $this->mToolReferralCode = $this->_mock(\Praxigento\Downline\Tool\IReferral::class); /** create object to test */ $this->obj = new FrontControllerPlugin($this->mToolReferralCode); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mSubject = $this->_mock(\Magento\Catalog\Model\ResourceModel\Product\Collection::class); /** create object to test */ $this->obj = new Collection(); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mSubRegister = $this->_mock(\Praxigento\Pv\Observer\Sub\Register::class); /** create object to test */ $this->obj = new CheckoutSubmitAllAfter($this->mSubRegister); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mSubject = $this->_mock(\Magento\CatalogInventory\Model\Stock\Item::class); /** create object to test */ $this->obj = new Item(); }
protected function setUp() { parent::setUp(); $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->sub = new Qualification($this->mCallDownlineMap, $this->mCallDownlineSnap, $this->mToolDownlineTree); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mQueryModGrid = $this->_mock(\Praxigento\Warehouse\Repo\Modifier\Product\Grid::class); /** create object to test */ $this->obj = new AddQuantityFieldToCollection($this->mQueryModGrid); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mSubject = $this->_mock(\Magento\Framework\Reflection\TypeProcessor::class); /** create object to test */ $this->obj = new TypeProcessorToTest(); }
public function setUp() { parent::setUp(); $resource = ObjectManager::getInstance()->get(\Magento\Framework\App\ResourceConnection::class); $repoGeneric = ObjectManager::getInstance()->get(\Praxigento\Core\Repo\IGeneric::class); $this->_obj = new Entity($resource, $repoGeneric, DataEntity::class); $this->_obj2 = new Entity($resource, $repoGeneric, DataEntityOther::class); }
protected function setUp() { parent::setUp(); $this->mFormat = $this->_mock(\Praxigento\Core\Tool\IFormat::class); $this->mDt = $this->_mock(\Magento\Framework\Stdlib\DateTime\DateTime::class); $this->mDt->shouldReceive('getGmtOffset')->andReturn(self::OFFSET); $this->obj = new Date($this->mFormat, $this->mDt); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mResource = $this->_mockResourceConnection(); /** create object to test */ $this->obj = new QueryModifier($this->mResource); }
public function setUp() { parent::setUp(); /** create mocks */ $this->mCallCustomer = $this->_mock(\Praxigento\Downline\Service\ICustomer::class); /** create object to test */ $this->obj = new CustomerSaveAfterDataObject($this->mCallCustomer); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mToolPeriod = $this->_mock(\Praxigento\Core\Tool\IPeriod::class); /** setup mocks for constructor */ /** create object to test */ $this->obj = new CalcSimple($this->mToolPeriod); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mTypeProcessor = $this->_mock(\Magento\Framework\Reflection\TypeProcessor::class); $this->mParser = $this->_mock(\Praxigento\Core\Plugin\Framework\Webapi\Sub\Parser::class); /** create object to test */ $this->obj = new ServiceInputProcessor($this->mTypeProcessor, $this->mParser); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mConn = m::mock(\Magento\Framework\DB\Adapter\AdapterInterface::class); $this->mResource = m::mock(\Magento\Framework\App\ResourceConnection::class); /** setup mocks for constructor */ $this->mResource->shouldReceive('getConnection')->andReturn($this->mConn); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mManObj = $this->_mock(\Magento\Framework\ObjectManagerInterface::class); $this->mConfigDeployment = $this->_mock(\Magento\Framework\App\DeploymentConfig::class); $this->mFactoryConn = $this->_mock(\Magento\Framework\Model\ResourceModel\Type\Db\ConnectionFactory::class); $this->obj = new Fabrique($this->mManObj, $this->mConfigDeployment, $this->mFactoryConn); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mConn = $this->_mockConn(); $this->mResource = $this->_mockResourceConnection($this->mConn); /** create object to test */ $this->obj = new Item($this->mResource); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mResource = $this->_mockResourceConnection(); $this->mToolStockMan = $this->_mock(\Praxigento\Warehouse\Tool\IStockManager::class); /** create object to test */ $this->obj = new StockStatusCollectionInterfaceFactory($this->mResource, $this->mToolStockMan); }
protected function setUp() { parent::setUp(); $this->markTestSkipped('Test is deprecated after M1 & M2 merge is done.'); $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->sub = new Qualification($this->mCallDownlineMap, $this->mCallDownlineSnap, $this->mToolDownlineTree); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mSubject = $this->_mock(\Magento\CatalogInventory\Model\ResourceModel\Stock\Status::class); $this->mManStock = $this->_mock(\Praxigento\Warehouse\Tool\IStockManager::class); /** create object to test */ $this->obj = new Status($this->mManStock); }
protected function setUp() { parent::setUp(); /** create mocks */ $this->mRepoAggLot = $this->_mock(\Praxigento\Odoo\Repo\Agg\ILot::class); $this->mRepoWrhsEntityQty = $this->_mock(\Praxigento\Warehouse\Repo\Entity\IQuantity::class); /** create object to test */ $this->obj = new Lot($this->mRepoAggLot, $this->mRepoWrhsEntityQty); }
protected function setUp() { parent::setUp(); $this->mConvert = new Convert(); $this->mDt = $this->_mock(\Magento\Framework\Stdlib\DateTime\DateTime::class); $this->mDt->shouldReceive('getGmtOffset')->andReturn(self::OFFSET); $this->obj = new Period($this->mConvert, $this->mDt); $this->obj->setWeekFirstDay(Period::WEEK_MONDAY); }
protected function setUp() { parent::setUp(); $this->mCallDownlineSnap = $this->_mock(\Praxigento\Downline\Service\ISnap::class); $this->mToolFormat = $this->_mock(\Praxigento\Core\Tool\IFormat::class); $this->mToolDownlineTree = $this->_mock(\Praxigento\Downline\Tool\ITree::class); $this->mRankQualifier = $this->_mock(Bonus\RankQualifier::class); $this->sub = new Bonus($this->mCallDownlineSnap, $this->mToolFormat, $this->mToolDownlineTree, $this->mRankQualifier); }
public function setUp() { parent::setUp(); /** create mocks */ $this->mSubject = $this->_mock(\Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory::class); $this->mSubQueryModifier = $this->_mock(Sub\QueryModifier::class); /** create object to test */ $this->obj = new CollectionFactory($this->mSubQueryModifier); }