File tree Expand file tree Collapse file tree 2 files changed +2
-21
lines changed
app/code/Magento/MediaGalleryRenditions Expand file tree Collapse file tree 2 files changed +2
-21
lines changed Original file line number Diff line number Diff line change 1010
1111use Magento \Framework \App \Config \Initial ;
1212use Magento \Framework \App \Config \ScopeConfigInterface ;
13- use Magento \Framework \App \ResourceConnection ;
14- use Magento \Framework \Exception \NoSuchEntityException ;
1513
1614/**
1715 * Class responsible for providing access to Media Gallery Renditions system configuration.
1816 */
1917class Config
2018{
21- private const TABLE_CORE_CONFIG_DATA = 'core_config_data ' ;
2219 private const XML_PATH_MEDIA_GALLERY_ENABLED = 'system/media_gallery/enabled ' ;
2320 private const XML_PATH_ENABLED = 'system/media_gallery_renditions/enabled ' ;
2421 private const XML_PATH_MEDIA_GALLERY_RENDITIONS_WIDTH_PATH = 'system/media_gallery_renditions/width ' ;
@@ -34,24 +31,16 @@ class Config
3431 */
3532 private $ initialConfig ;
3633
37- /**
38- * @var ResourceConnection
39- */
40- private $ resourceConnection ;
41-
4234 /**
4335 * @param ScopeConfigInterface $scopeConfig
4436 * @param Initial $initialConfig
45- * @param ResourceConnection $resourceConnection
4637 */
4738 public function __construct (
4839 ScopeConfigInterface $ scopeConfig ,
49- Initial $ initialConfig ,
50- ResourceConnection $ resourceConnection
40+ Initial $ initialConfig
5141 ) {
5242 $ this ->scopeConfig = $ scopeConfig ;
5343 $ this ->initialConfig = $ initialConfig ;
54- $ this ->resourceConnection = $ resourceConnection ;
5544 }
5645
5746 /**
Original file line number Diff line number Diff line change 99
1010use Magento \Framework \App \Config \Initial ;
1111use Magento \Framework \App \Config \ScopeConfigInterface ;
12- use Magento \Framework \App \ResourceConnection ;
1312use Magento \MediaGalleryRenditions \Model \Config ;
1413use PHPUnit \Framework \MockObject \MockObject ;
1514use PHPUnit \Framework \TestCase ;
@@ -26,11 +25,6 @@ class ConfigTest extends TestCase
2625 */
2726 private $ initialConfigMock ;
2827
29- /**
30- * @var ResourceConnection|MockObject
31- */
32- private $ resourceConnectionMock ;
33-
3428 /**
3529 * @var Config
3630 */
@@ -40,11 +34,9 @@ protected function setUp(): void
4034 {
4135 $ this ->scopeConfigMock = $ this ->createMock (ScopeConfigInterface::class);
4236 $ this ->initialConfigMock = $ this ->createMock (Initial::class);
43- $ this ->resourceConnectionMock = $ this ->createMock (ResourceConnection::class);
4437 $ this ->config = new Config (
4538 $ this ->scopeConfigMock ,
46- $ this ->initialConfigMock ,
47- $ this ->resourceConnectionMock
39+ $ this ->initialConfigMock
4840 );
4941 }
5042
You can’t perform that action at this time.
0 commit comments