Skip to content

Commit 5891c8c

Browse files
author
NazarKlovanych
committed
Fix failed CacheTEst & PageCacheTest
1 parent 7f014dd commit 5891c8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup/src/Magento/Setup/Test/Unit/Model/ConfigOptionsList/CacheTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function setUp()
3939
public function testGetOptions()
4040
{
4141
$options = $this->configOptionsList->getOptions();
42-
$this->assertCount(4, $options);
42+
$this->assertCount(5, $options);
4343

4444
$this->assertArrayHasKey(0, $options);
4545
$this->assertInstanceOf(SelectConfigOption::class, $options[0]);
@@ -124,7 +124,7 @@ public function testValidateWithValidInput()
124124
];
125125
$this->validatorMock->expects($this->once())
126126
->method('isValidConnection')
127-
->with(['host'=>'localhost', 'db'=>'', 'port'=>''])
127+
->with(['host'=>'localhost', 'db'=>'', 'port'=>'', 'password'=>''])
128128
->willReturn(true);
129129

130130
$errors = $this->configOptionsList->validate($options, $this->deploymentConfigMock);

setup/src/Magento/Setup/Test/Unit/Model/ConfigOptionsList/PageCacheTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function setUp()
3939
public function testGetOptions()
4040
{
4141
$options = $this->configList->getOptions();
42-
$this->assertCount(5, $options);
42+
$this->assertCount(6, $options);
4343

4444
$this->assertArrayHasKey(0, $options);
4545
$this->assertInstanceOf(SelectConfigOption::class, $options[0]);

0 commit comments

Comments
 (0)