Skip to content

Commit a0696ef

Browse files
committed
AC-10686: [PCI] SRI enabled on payment pages.
Fixing broken unit test
1 parent 39938c1 commit a0696ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function testBeforeGetFilteredProperties(): void
8585
->disableOriginalConstructor()
8686
->getMock();
8787
$path = 'jquery.js';
88-
$area = 'frontend';
88+
$area = 'base';
8989

9090
$data = new SubresourceIntegrity(
9191
[
@@ -96,7 +96,6 @@ public function testBeforeGetFilteredProperties(): void
9696
$properties['attributes']['integrity'] = $data->getHash();
9797
$properties['attributes']['crossorigin'] = 'anonymous';
9898
$expected = [$this->assetInterfaceMock, $properties];
99-
$this->stateMock->expects($this->once())->method('getAreaCode')->willReturn($area);
10099
$this->integrityRepositoryPoolMock->expects($this->once())->method('get')->with($area)
101100
->willReturn(
102101
$integrityRepositoryMock

0 commit comments

Comments
 (0)