Skip to content

Commit 8ab49fa

Browse files
committed
ACP2E-277: treat missing rules from authorization_rule table as deny permission rules; fix static errors / warnings; fix failing mtft fails
1 parent a8c300b commit 8ab49fa

File tree

1 file changed

+10
-10
lines changed
  • app/code/Magento/Authorization/Test/Unit/Model/Acl/Loader

1 file changed

+10
-10
lines changed

app/code/Magento/Authorization/Test/Unit/Model/Acl/Loader/RuleTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,21 @@ public function testPopulateAclFromCache(): void
123123
['2', 1, null]
124124
);
125125

126-
$aclMock
127-
->method('getResources')
128-
->willReturn([
129-
'Vendor_MyModule::menu'
130-
]);
131-
132126
$aclMock
133127
->method('deny')
134128
->withConsecutive(
135-
['3', 1, null],
136-
['1', 'Vendor_MyModule::menu', null],
137-
['2', 'Vendor_MyModule::menu', null],
138-
['3', 'Vendor_MyModule::menu', null]
129+
['3', 1, null]
139130
);
140131

132+
$aclMock
133+
->method('getResources')
134+
->willReturn([
135+
'Magento_Backend::all',
136+
'Magento_Backend::admin',
137+
'Vendor_MyModule::menu',
138+
'Vendor_MyModule::index'
139+
]);
140+
141141
$this->model->populateAcl($aclMock);
142142
}
143143
}

0 commit comments

Comments
 (0)