Skip to content

Commit 9e2462c

Browse files
committed
MC-24057: Implement static dependency analysis for wildcard and API urls
- Fixed static tests
1 parent b336df7 commit 9e2462c

File tree

1 file changed

+7
-3
lines changed
  • dev/tests/static/framework/tests/unit/testsuite/Magento/TestFramework/Dependency

1 file changed

+7
-3
lines changed

dev/tests/static/framework/tests/unit/testsuite/Magento/TestFramework/Dependency/PhpRuleTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ public function getDependencyInfoDataProvider()
228228
];
229229
}
230230

231-
232231
/**
233232
* @param string $class
234233
* @param string $content
@@ -313,7 +312,6 @@ public function getDependencyInfoDataCaseGetUrlDataProvider()
313312
];
314313
}
315314

316-
317315
/**
318316
* @param string $template
319317
* @param string $content
@@ -331,11 +329,14 @@ public function testGetDependencyInfoCaseTemplateGetUrl(
331329
$this->assertEquals($expected, $this->model->getDependencyInfo($module, 'php', $template, $content));
332330
}
333331

332+
/**
333+
* @return array[]
334+
*/
334335
public function getDependencyInfoDataCaseGetTemplateUrlDataProvider()
335336
{
336337
return [ 'getUrl from ignore template' => [
337338
'app/code/Magento/Backend/view/adminhtml/templates/dashboard/totalbar/script.phtml',
338-
'$getUrl("adminhtml/*/ajaxBlock"',
339+
'$getUrl("adminhtml/*/ajaxBlock")',
339340
[]]];
340341
}
341342

@@ -373,6 +374,9 @@ public function testProcessWildcardUrl(
373374
$phpRule->getDependencyInfo($module, 'php', $file, $content);
374375
}
375376

377+
/**
378+
* @return array[]
379+
*/
376380
public function processWildcardUrlDataProvider()
377381
{
378382
return [

0 commit comments

Comments
 (0)