Skip to content

Commit 7811896

Browse files
committed
Covering the model classes by Unit Tests
1 parent ece031d commit 7811896

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/Csp/Test/Unit/Model/Mode/ConfigManagerTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@
2626
*/
2727
class ConfigManagerTest extends TestCase
2828
{
29-
const STUB_CRONTAB_AREA = 'crontab';
30-
3129
/**
3230
* @var ConfigManager
3331
*/
@@ -81,7 +79,7 @@ public function testThrownExceptionForCrontabArea()
8179
{
8280
$this->stateMock->expects($this->any())
8381
->method('getAreaCode')
84-
->willReturn(static::STUB_CRONTAB_AREA);
82+
->willReturn(Area::AREA_CRONTAB);
8583

8684
$this->model->getConfigured();
8785
}

app/code/Magento/Csp/Test/Unit/Model/PolicyRendererPoolTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class PolicyRendererPoolTest extends TestCase
2525
{
26-
const STUB_POLICY_ID = 'header';
26+
private const STUB_POLICY_ID = 'header';
2727

2828
/**
2929
* @var PolicyRendererPool

0 commit comments

Comments
 (0)