File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
dev/tests/static/testsuite/Magento/Test/Legacy Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 10
10
*/
11
11
namespace Magento \Test \Legacy ;
12
12
13
+ use Psr \Log \LoggerInterface ;
14
+
13
15
class ModuleDBChangeTest extends \PHPUnit_Framework_TestCase
14
16
{
15
17
/**
@@ -67,6 +69,9 @@ public function testModuleXmlFiles()
67
69
{
68
70
if (!self ::$ actualBranch ) {
69
71
preg_match_all ('|etc/module\.xml$|mi ' , self ::$ changedFileList , $ matches );
72
+ $ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
73
+ $ logger = $ objectManager ->get (LoggerInterface::class);
74
+ $ logger ->debug ('----->LOGGER: ' , $ matches );
70
75
$ this ->assertEmpty (
71
76
reset ($ matches ),
72
77
'module.xml changes for patch releases in non-actual branches are not allowed: ' . PHP_EOL .
@@ -82,6 +87,9 @@ public function testModuleSetupFiles()
82
87
{
83
88
if (!self ::$ actualBranch ) {
84
89
preg_match_all ('|app/code/Magento/[^/]+/Setup/[^/]+$|mi ' , self ::$ changedFileList , $ matches );
90
+ $ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
91
+ $ logger = $ objectManager ->get (LoggerInterface::class);
92
+ $ logger ->debug ('----->LOGGER: ' , $ matches );
85
93
$ this ->assertEmpty (
86
94
reset ($ matches ),
87
95
'Code with changes for DB schema or data in non-actual branches are not allowed: ' . PHP_EOL .
You can’t perform that action at this time.
0 commit comments