File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Magento/FunctionalTestingFramework/Upgrade Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ public function execute(InputInterface $input)
45
45
$ fileSystem = new Filesystem ();
46
46
$ testsUpdated = 0 ;
47
47
foreach ($ finder ->files () as $ file ) {
48
- if (!$ this ->detectOldAttributes ($ file )) {
49
- continue ;
50
- }
48
+ // if (!$this->detectOldAttributes($file)) {
49
+ // continue;
50
+ // }
51
51
$ this ->currentFile = $ file ->getFilename ();
52
52
$ contents = $ file ->getContents ();
53
53
// Isolate <assert ... /> but not <assert> ... </assert>
@@ -157,7 +157,7 @@ private function convertOldAssertionToNew($assertion)
157
157
// Massage subElements with data for edge cases
158
158
if ($ assertType == 'assertElementContainsAttribute ' ) {
159
159
// Assert type is very edge-cased, completely different schema
160
- $ value = $ subElements ['expected ' ]['value ' ];
160
+ $ value = $ subElements ['expected ' ]['value ' ] ?? "" ;
161
161
$ selector = $ trimmedParts ['selector ' ];
162
162
$ attribute = $ trimmedParts ['attribute ' ];
163
163
$ newString .= "\t\t\t<expectedResult selector= \"$ selector \" attribute= \"$ attribute \"> $ value</expectedResult> \n" ;
You can’t perform that action at this time.
0 commit comments