diff --git a/lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php b/lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php index 3d90fc781bf3a..2b6f628a952c2 100644 --- a/lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php +++ b/lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php @@ -36,7 +36,7 @@ abstract protected function _construct(); * * @return \Magento\Framework\DB\Adapter\AdapterInterface */ - abstract protected function getConnection(); + abstract public function getConnection(); /** * Start resource transaction diff --git a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/AbstractResourceStub.php b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/AbstractResourceStub.php index 287e12e8abdf3..2d7fe86c4977d 100644 --- a/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/AbstractResourceStub.php +++ b/lib/internal/Magento/Framework/Model/Test/Unit/ResourceModel/AbstractResourceStub.php @@ -31,7 +31,7 @@ protected function _construct() * * @return AdapterInterface */ - protected function getConnection() + public function getConnection() { return $this->connectionAdapter; }