コード例 #1
0
 public function test_qualification()
 {
     $obm = \Magento\Framework\App\ObjectManager::getInstance();
     /** @var  $dba \Praxigento\Core\Lib\Context\IDbAdapter */
     $dba = $obm->get(\Praxigento\Core\Lib\Context\IDbAdapter::class);
     $dba->getDefaultConnection()->beginTransaction();
     /** @var  $call \Praxigento\BonusLoyalty\Service\ICalc */
     $call = $obm->get(\Praxigento\BonusLoyalty\Service\ICalc::class);
     $req = new Request\Qualification();
     $req->setGvMaxLevels(2);
     $req->setPsaaLevel(120);
     $resp = $call->qualification($req);
     $this->assertTrue($resp->isSucceed());
     $dba->getDefaultConnection()->commit();
 }