public function test_bonusInfinity_Eu()
 {
     $obm = \Magento\Framework\App\ObjectManager::getInstance();
     /** @var  $call \Praxigento\Bonus\Hybrid\Lib\Service\ICalc */
     $call = $obm->get('Praxigento\\Bonus\\Hybrid\\Lib\\Service\\ICalc');
     $request = new Request\BonusInfinity();
     $request->setScheme(Def::SCHEMA_EU);
     $response = $call->bonusInfinity($request);
     $this->assertTrue($response->isSucceed());
 }
 public function test_bonusInfinity_noPeriod_Eu()
 {
     /** === Test Data === */
     /** === Mocks === */
     $mLogger = $this->_mockLogger();
     $mConn = $this->_mockConnection();
     $mDba = $this->_mockDbAdapter(null, $mConn);
     $mToolbox = $this->_mockToolbox();
     $mCallRepo = $this->_mockCallRepo();
     $mCallAccount = $this->_mockFor('Praxigento\\Accounting\\Service\\IAccount');
     $mCallBonusPersonalPeriod = $this->_mockFor('Praxigento\\Bonus\\Hybrid\\Lib\\Service\\IPeriod');
     $mSubDb = $this->_mockFor('Praxigento\\Bonus\\Hybrid\\Lib\\Service\\Calc\\Sub\\Db');
     $mSubCalc = $this->_mockFor('Praxigento\\Bonus\\Hybrid\\Lib\\Service\\Calc\\Sub\\Calc');
     // $respGetPeriod = $this->_callPeriod->getForDependentCalc($reqGetPeriod);
     $mRespGetPeriod = new BonusPersonalPeriodGetForDependentCalcResponse();
     $mCallBonusPersonalPeriod->expects($this->once())->method('getForDependentCalc')->willReturn($mRespGetPeriod);
     /**
      * Prepare request and perform call.
      */
     /** @var  $call Call */
     $call = new Call($mLogger, $mDba, $mToolbox, $mCallRepo, $mCallAccount, $mCallBonusPersonalPeriod, $mSubDb, $mSubCalc);
     $req = new Request\BonusInfinity();
     $req->setScheme(Def::SCHEMA_EU);
     $resp = $call->bonusInfinity($req);
     $this->assertFalse($resp->isSucceed());
 }