Skip to content

Commit 6c6aff9

Browse files
committed
AC-15049 : [CE] PHPUnit 12: Upgrade Security & Authentication related test cases
1 parent 9e21556 commit 6c6aff9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/code/Magento/EncryptionKey/Test/Unit/Model/ResourceModel/Key/ChangeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Magento\Framework\Encryption\EncryptorInterface;
1818
use Magento\Framework\Filesystem;
1919
use Magento\Framework\Math\Random;
20+
use Magento\Framework\Model\ResourceModel\Db\Context;
2021
use Magento\Framework\Model\ResourceModel\Db\ObjectRelationProcessor;
2122
use Magento\Framework\Model\ResourceModel\Db\TransactionManagerInterface;
2223
use 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);

app/code/Magento/User/Test/Unit/Block/Role/Tab/EditTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)