File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
dev/tests/integration/testsuite/Magento/TestModuleOverrideConfig Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ declare (strict_types=1 );
8
+
9
+ namespace Magento \TestModuleOverrideConfig ;
10
+
11
+ use Magento \Framework \ObjectManagerInterface ;
12
+ use Magento \TestFramework \Helper \Bootstrap ;
13
+ use PHPUnit \Framework \TestCase ;
14
+
15
+ /**
16
+ * Base class for override config tests.
17
+ */
18
+ abstract class AbstractOverridesTest extends TestCase
19
+ {
20
+ /**
21
+ * @var ObjectManagerInterface
22
+ */
23
+ protected $ objectManager ;
24
+
25
+ /**
26
+ * @inheritdoc
27
+ */
28
+ protected function setUp (): void
29
+ {
30
+ parent ::setUp ();
31
+
32
+ $ useConfig = (defined ('USE_OVERRIDE_CONFIG ' ) && USE_OVERRIDE_CONFIG === 'enabled ' );
33
+
34
+ if (!$ useConfig ) {
35
+ $ this ->markTestSkipped ('Override config disabled. ' );
36
+ }
37
+
38
+ $ this ->objectManager = Bootstrap::getObjectManager ();
39
+ }
40
+ }
You can’t perform that action at this time.
0 commit comments