Skip to content

Commit 63dec93

Browse files
ShradddhaShradddha
authored andcommitted
AC-12092:: Remove Deprecations- PhpUnit10 Unit Tests
1 parent 6c59371 commit 63dec93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/AdminNotification/Test/Unit/Model/System/Message/CacheOutdatedTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ protected function setUp(): void
6060
* @param array $cacheTypes
6161
* @dataProvider getIdentityDataProvider
6262
*/
63-
public function testGetIdentity($expectedSum, $cacheTypes)
63+
public function testGetIdentity($expectedSum, $types)
6464
{
65-
$cacheType1 = [];
66-
foreach($cacheTypes as $cacheType){
67-
$cacheType1[] = $cacheType($this);
65+
$cacheType = [];
66+
foreach($types as $type){
67+
$cacheType[] = $type($this);
6868
}
6969

7070
$this->_cacheTypeListMock->method(
7171
'getInvalidated'
7272
)->willReturn(
73-
$cacheType1
73+
$cacheType
7474
);
7575
$this->assertEquals($expectedSum, $this->_messageModel->getIdentity());
7676
}

0 commit comments

Comments
 (0)