File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed
dev/tests/integration/testsuite/Magento/MediaStorage Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ protected function setUp()
50
50
/**
51
51
* test for \Magento\MediaStorage\Model\File\Storage\Database::deleteFolder()
52
52
*
53
- * @magentoDataFixture Magento/MediaStorage/_files/database_mode.php
53
+ * @magentoDataFixtureBeforeTransaction Magento/MediaStorage/_files/database_mode.php
54
54
*/
55
55
public function testDeleteFolder ()
56
56
{
Original file line number Diff line number Diff line change 12
12
$ database = $ objectManager ->get (\Magento \MediaStorage \Helper \File \Storage \Database::class);
13
13
$ database ->getStorageDatabaseModel ()->init ();
14
14
15
+ /** @var Magento\Framework\App\Config\ConfigResource\ConfigInterface $config */
15
16
$ config = $ objectManager ->get (Magento \Framework \App \Config \ConfigResource \ConfigInterface::class);
16
17
$ config ->saveConfig ('system/media_storage_configuration/media_storage ' , '1 ' );
17
18
$ config ->saveConfig ('system/media_storage_configuration/media_database ' , 'default_setup ' );
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ /** @var $objectManager \Magento\TestFramework\ObjectManager */
9
+ $ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
10
+
11
+ /** @var Magento\Framework\App\Config\ConfigResource\ConfigInterface $config */
12
+ $ config = $ objectManager ->get (Magento \Framework \App \Config \ConfigResource \ConfigInterface::class);
13
+ $ config ->deleteConfig ('system/media_storage_configuration/media_storage ' );
14
+ $ config ->deleteConfig ('system/media_storage_configuration/media_database ' );
15
+ $ objectManager ->get (Magento \Framework \App \Config \ReinitableConfigInterface::class)->reinit ();
You can’t perform that action at this time.
0 commit comments