コード例 #1
0
 public function test_getSelectQuery()
 {
     /** === Test Data === */
     $orderId = 1;
     $stockId = 1;
     /** === Call and asserts  === */
     $res = $this->obj->getQueryToSelect();
     /** @var \Magento\Framework\App\ResourceConnection $resr */
     $resr = $this->manObj->get(\Magento\Framework\App\ResourceConnection::class);
     $conn = $resr->getConnection();
     $all = $conn->fetchAll($res, [SelectFactory::PARAM_ORDER_ID => $orderId, SelectFactory::PARAM_STOCK_ID => $stockId]);
     $this->assertNotNull($res);
 }
コード例 #2
0
 public function getQueryToSelectCount()
 {
     $result = $this->_factorySelect->getQueryToSelectCount();
     return $result;
 }