File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/code/Magento/AdminNotification/Test/Unit/Model/System/Message Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,17 @@ protected function setUp(): void
60
60
* @param array $cacheTypes
61
61
* @dataProvider getIdentityDataProvider
62
62
*/
63
- public function testGetIdentity ($ expectedSum , $ cacheTypes )
63
+ public function testGetIdentity ($ expectedSum , $ types )
64
64
{
65
- $ cacheType1 = [];
66
- foreach ($ cacheTypes as $ cacheType ){
67
- $ cacheType1 [] = $ cacheType ($ this );
65
+ $ cacheType = [];
66
+ foreach ($ types as $ type ){
67
+ $ cacheType [] = $ type ($ this );
68
68
}
69
69
70
70
$ this ->_cacheTypeListMock ->method (
71
71
'getInvalidated '
72
72
)->willReturn (
73
- $ cacheType1
73
+ $ cacheType
74
74
);
75
75
$ this ->assertEquals ($ expectedSum , $ this ->_messageModel ->getIdentity ());
76
76
}
You can’t perform that action at this time.
0 commit comments