Skip to content

Commit f0da50c

Browse files
author
Dale Sikkema
committed
MAGETWO-16192: Security: Clickjacking solution - introduce X-Frame-Options
- update unit tests
1 parent f831931 commit f0da50c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

setup/src/Magento/Setup/Test/Unit/Module/ConfigOptionsListTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ public function testCreateOptions()
8282
$this->generator->expects($this->once())->method('createDefinitionsConfig')->willReturn($configDataMock);
8383
$this->generator->expects($this->once())->method('createDbConfig')->willReturn($configDataMock);
8484
$this->generator->expects($this->once())->method('createResourceConfig')->willReturn($configDataMock);
85+
$this->generator->expects($this->once())->method('createXFrameConfig')->willReturn($configDataMock);
8586
$configData = $this->object->createConfig([], $this->deploymentConfig);
86-
$this->assertEquals(6, count($configData));
87+
$this->assertEquals(7, count($configData));
8788
}
8889

8990
public function testCreateOptionsWithOptionalNull()
@@ -95,7 +96,8 @@ public function testCreateOptionsWithOptionalNull()
9596
$this->generator->expects($this->once())->method('createDefinitionsConfig')->willReturn(null);
9697
$this->generator->expects($this->once())->method('createDbConfig')->willReturn($configDataMock);
9798
$this->generator->expects($this->once())->method('createResourceConfig')->willReturn($configDataMock);
99+
$this->generator->expects($this->once())->method('createXFrameConfig')->willReturn($configDataMock);
98100
$configData = $this->object->createConfig([], $this->deploymentConfig);
99-
$this->assertEquals(5, count($configData));
101+
$this->assertEquals(6, count($configData));
100102
}
101103
}

0 commit comments

Comments
 (0)