File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
EncryptionKey/Test/Unit/Model/ResourceModel/Key
User/Test/Unit/Block/Role/Tab Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1717use Magento \Framework \Encryption \EncryptorInterface ;
1818use Magento \Framework \Filesystem ;
1919use Magento \Framework \Math \Random ;
20+ use Magento \Framework \Model \ResourceModel \Db \Context ;
2021use Magento \Framework \Model \ResourceModel \Db \ObjectRelationProcessor ;
2122use Magento \Framework \Model \ResourceModel \Db \TransactionManagerInterface ;
2223use Magento \Framework \TestFramework \Unit \Helper \MockCreationTrait ;
@@ -96,7 +97,7 @@ protected function setUp(): void
9697 $ this ->randomMock = $ this ->createMock (Random::class);
9798
9899 $ contextMock = $ this ->createPartialMock (
99- \ Magento \ Framework \ Model \ ResourceModel \ Db \ Context::class,
100+ Context::class,
100101 ['getResources ' ]
101102 );
102103 $ contextMock ->method ('getResources ' )->willReturn ($ this ->resourceMock );
Original file line number Diff line number Diff line change @@ -102,6 +102,10 @@ public function testGetTree()
102102 $ this ->assertEquals ($ mappedResources , $ this ->model ->getTree ());
103103 }
104104
105+ /**
106+ * @param bool $isAllowed
107+ * @dataProvider dataProviderBoolValues
108+ */
105109 #[DataProvider('dataProviderBoolValues ' )]
106110 public function testIsEverythingAllowed ($ isAllowed )
107111 {
You can’t perform that action at this time.
0 commit comments