public function __construct($name = null, array $data = [], $dataName = '') { parent::__construct($name, $data, $dataName); $this->_manTrans = $this->_manObj->get(\Praxigento\Core\Transaction\Database\IManager::class); $this->_callTransfer = $this->_manObj->get(\Praxigento\Pv\Service\ITransfer::class); $this->_callAccount = $this->_manObj->get(\Praxigento\Accounting\Service\IAccount::class); }
public function __construct($name = null, array $data = [], $dataName = '') { parent::__construct($name, $data, $dataName); /* services */ $this->_repoBasic = $this->_manObj->get(\Praxigento\Core\Repo\IGeneric::class); /* services */ $this->_callSale = $this->_manObj->get(\Praxigento\Pv\Service\ISale::class); }
protected function setUp() { parent::setUp(); $logger = $this->_manObj->get(\Psr\Log\LoggerInterface::class); $adapter = $this->_manObj->get(Adapter::class); $params = new Params(['BaseUri' => 'http://lion.host.prxgt.com:8122', 'DbName' => 'oe_odoo9_api', 'UserName' => 'admin', 'UserPassword' => 'admin']); $this->obj = new Login($logger, $this->_manObj, $adapter, $params); }
public function __construct() { parent::__construct(); $this->_repoGeneric = $this->_manObj->get(\Praxigento\Core\Repo\IGeneric::class); $this->_toolDate = $this->_manObj->get(\Praxigento\Core\Tool\IDate::class); $this->_repoMageStock = $this->_manObj->get(StockRepositoryInterface::class); $this->_repoMageStockItem = $this->_manObj->get(StockItemRepositoryInterface::class); $this->_repoStockItem = $this->_manObj->get(IRepoStockItem::class); }
/** * Main_FunctionalTest constructor. */ public function __construct() { parent::__construct(); $this->_callAccount = $this->_manObj->get(\Praxigento\Accounting\Service\IAccount::class); $this->_callBalance = $this->_manObj->get(\Praxigento\Accounting\Service\Balance\Call::class); $this->_callOperation = $this->_manObj->get(\Praxigento\Accounting\Service\Operation\Call::class); $this->_repoGeneric = $this->_manObj->get(\Praxigento\Core\Repo\IGeneric::class); $this->_repoBalance = $this->_manObj->get(\Praxigento\Accounting\Repo\Entity\IBalance::class); }
protected function setUp() { parent::setUp(); $converter = $this->_manObj->get(ServiceInputProcessor::class); $logger = $this->_manObj->get(\Psr\Log\LoggerInterface::class); $adapter = $this->_manObj->get(Adapter::class); $params = new Params(['BaseUri' => 'http://lion.host.prxgt.com:8122', 'DbName' => 'oe_odoo9_api', 'UserName' => 'admin', 'UserPassword' => 'admin']); $login = new Login($logger, $adapter, $params); $rest = new RestRequest($logger, $adapter, $params, $login); $this->obj = new Inventory($converter, $rest); }
public function __construct() { parent::__construct(); $this->_callGlobalSalesCalc = $this->_manObj->get(\Praxigento\Bonus\GlobalSales\Lib\Service\ICalc::class); $this->_callLoyaltyCalc = $this->_manObj->get(\Praxigento\BonusLoyalty\Service\ICalc::class); $this->_callPvSale = $this->_manObj->get(\Praxigento\Pv\Service\ISale::class); $this->repoBasic = $this->_manObj->get(\Praxigento\Core\Repo\IGeneric::class); $this->_repoTypeAsset = $this->_manObj->get(\Praxigento\Accounting\Repo\Entity\Type\IAsset::class); $this->_repoBonusRank = $this->_manObj->get(\Praxigento\BonusBase\Repo\Entity\IRank::class); $this->_repoAcc = $this->_manObj->get(\Praxigento\Accounting\Repo\IModule::class); }
public function __construct() { parent::__construct(); $this->_callAccAccount = $this->_manObj->get(\Praxigento\Accounting\Service\IAccount::class); $this->_callAccOperation = $this->_manObj->get(\Praxigento\Accounting\Service\IOperation::class); $this->_callCalc = $this->_manObj->get(\Praxigento\Bonus\Hybrid\Lib\Service\ICalc::class); $this->_callPeriod = $this->_manObj->get(\Praxigento\Bonus\Hybrid\Lib\Service\IPeriod::class); $this->_callPvTransfer = $this->_manObj->get(\Praxigento\Pv\Service\ITransfer::class); $this->_repoTypeAsset = $this->_manObj->get(\Praxigento\Accounting\Repo\Entity\Type\IAsset::class); $this->_repoTypeCalc = $this->_manObj->get(\Praxigento\BonusBase\Repo\Entity\Type\ICalc::class); $this->_repoBasic = $this->_manObj->get(\Praxigento\Core\Repo\IGeneric::class); }
public function setUp() { parent::setUp(); /* clear cached data */ $this->_callPvSale->cacheReset(); }
protected function setUp() { parent::setUp(); $this->_logger = $this->_manObj->get('loggerSetup'); // use standalone logger for setup logs }
public function __construct() { parent::__construct(); $this->_callAccount = $this->_manObj->get(\Praxigento\Accounting\Service\IAccount::class); $this->_callOperation = $this->_manObj->get(\Praxigento\Accounting\Service\IOperation::class); $this->_callCalc = $this->_manObj->get(\Praxigento\Bonus\Hybrid\Lib\Service\ICalc::class); $this->_callDownlineSnap = $this->_manObj->get(\Praxigento\Downline\Service\ISnap::class); $this->_callPeriod = $this->_manObj->get(\Praxigento\Bonus\Hybrid\Lib\Service\IPeriod::class); $this->_callPvTransfer = $this->_manObj->get(\Praxigento\Pv\Service\ITransfer::class); $this->_repoBasic = $this->_manObj->get(\Praxigento\Core\Repo\IGeneric::class); $this->_repoTypeAsset = $this->_manObj->get(\Praxigento\Accounting\Repo\Entity\Type\IAsset::class); $this->_repoTypeCalc = $this->_manObj->get(\Praxigento\BonusBase\Repo\Entity\Type\ICalc::class); $this->_repoRank = $this->_manObj->get(\Praxigento\BonusBase\Repo\Entity\IRank::class); $this->_toolScheme = $this->_manObj->get(\Praxigento\Bonus\Hybrid\Lib\Tool\IScheme::class); $this->_toolDate = $this->_manObj->get(\Praxigento\Core\Tool\IDate::class); }
public function __construct() { parent::__construct(); $this->_callSnap = $this->_manObj->get(\Praxigento\Downline\Service\Snap\Call::class); }