Skip to content

Commit 3ac6ba4

Browse files
committed
Fix static test failure
1 parent a31e41b commit 3ac6ba4

File tree

1 file changed

+6
-0
lines changed
  • app/code/Magento/Catalog/Test/Unit/Block/Adminhtml/Category/Checkboxes

1 file changed

+6
-0
lines changed

app/code/Magento/Catalog/Test/Unit/Block/Adminhtml/Category/Checkboxes/TreeTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ protected function setUp(): void
3939

4040
/**
4141
* Provide a stub collection that supports chaining and iteration.
42+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
43+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4244
*/
4345
private function createCategoryCollectionStub(array $paths)
4446
{
@@ -175,6 +177,10 @@ public function testSetCategoryIdsWithEmptyInputProducesEmptyArrayAndSkipsDb()
175177
$this->assertSame([], $block->getCategoryIds());
176178
}
177179

180+
/**
181+
* @SuppressWarnings(PHPMD.UnusedLocalVariable)
182+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
183+
*/
178184
public function testSetCategoryIdsWithScalarCastsToIntArrayAndFiltersCollection()
179185
{
180186
$block = $this->buildBlockMock();

0 commit comments

Comments
 (0)