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); }
public function getQueryToSelectCount() { $result = $this->_factorySelect->getQueryToSelectCount(); return $result; }