Skip to content

Commit b1e08d3

Browse files
committed
AC-10982::[2FA] Integrate with Duo Web SDK to support Universal Prompt-reverting the unit tests changes as not required
1 parent 08ab8c2 commit b1e08d3

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

app/code/Magento/Csp/Test/Unit/Plugin/StoreAssetIntegrityHashesTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ protected function setUp(): void
6262
* Test After Deploy method of plugin
6363
*
6464
* @return void
65+
* @doesNotPerformAssertions
6566
*/
6667
public function testAfterDeploy(): void
6768
{

app/code/Magento/Customer/Test/Unit/Model/AccountManagementApiTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ public function testBeforeCreateAccount(
434434
if ($willThrowException) {
435435
$this->expectException(AuthorizationException::class);
436436
} else {
437-
//$this->expectNotToPerformAssertions();
437+
$this->expectNotToPerformAssertions();
438438
}
439439
$this->authorizationMock
440440
->expects($this->once())

app/code/Magento/Customer/Test/Unit/Plugin/AsyncRequestCustomerGroupAuthorizationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testBeforePublishMass(
7676
if ($willThrowException) {
7777
$this->expectException(AuthorizationException::class);
7878
} else {
79-
//$this->expectNotToPerformAssertions();
79+
$this->expectNotToPerformAssertions();
8080
}
8181
$customer = $this->getMockForAbstractClass(CustomerInterface::class);
8282
$customer->method('getGroupId')->willReturn($groupId);

app/code/Magento/Swagger/Test/Unit/Controller/Index/IndexTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ protected function setUp(): void
7171
*/
7272
public function testExecute()
7373
{
74-
$this->pageConfigMock->method('addBodyClass')
74+
$this->pageConfigMock->expects($this->once())
75+
->method('addBodyClass')
7576
->with('swagger-section');
76-
$this->resultPageFactory->method('create');
77+
$this->resultPageFactory->expects($this->once())
78+
->method('create');
7779

7880
$this->indexAction->execute();
7981
}
@@ -101,7 +103,8 @@ public function testDispatchIsSuccessfulWhenEnabled()
101103
->disableOriginalConstructor()
102104
->getMock();
103105
// Assert that execute is called
104-
$request->method('getFullActionName');
106+
$request->expects($this->once())
107+
->method('getFullActionName');
105108
$this->config->method('isEnabled')
106109
->willReturn(true);
107110

0 commit comments

Comments
 (0)