Skip to content

Commit 9d26084

Browse files
committed
Fix static and unit tests.
1 parent 4b60fad commit 9d26084

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

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

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class CacheTest extends \PHPUnit\Framework\TestCase
2828
*/
2929
private $deploymentConfigMock;
3030

31+
/**
32+
* @inheritdoc
33+
*/
3134
protected function setUp()
3235
{
3336
$this->validatorMock = $this->createMock(RedisConnectionValidator::class);
@@ -122,11 +125,6 @@ public function testCreateConfigWithRedisConfig()
122125
$this->assertEquals($expectedConfigData, $configData->getData());
123126
}
124127

125-
<<<<<<< HEAD
126-
=======
127-
/**
128-
* testCreateConfigCacheRedis
129-
*/
130128
public function testCreateConfigWithFileCache()
131129
{
132130
$this->deploymentConfigMock->method('get')->willReturn('');
@@ -146,9 +144,6 @@ public function testCreateConfigWithFileCache()
146144
$this->assertEquals($expectedConfigData, $configData->getData());
147145
}
148146

149-
/**
150-
* testCreateConfigCacheRedis
151-
*/
152147
public function testCreateConfigWithIdPrefix()
153148
{
154149
$this->deploymentConfigMock->method('get')->willReturn('');
@@ -172,10 +167,6 @@ public function testCreateConfigWithIdPrefix()
172167
$this->assertEquals($expectedConfigData, $configData->getData());
173168
}
174169

175-
/**
176-
* testValidateWithValidInput
177-
*/
178-
>>>>>>> 12b7e08c2f26... Set cache id prefix on installation
179170
public function testValidateWithValidInput()
180171
{
181172
$options = [

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

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class PageCacheTest extends \PHPUnit\Framework\TestCase
2828
*/
2929
private $deploymentConfigMock;
3030

31+
/**
32+
* @inheritdoc
33+
*/
3134
protected function setUp()
3235
{
3336
$this->validatorMock = $this->createMock(RedisConnectionValidator::class, [], [], '', false);
@@ -130,11 +133,6 @@ public function testCreateConfigWithRedisConfiguration()
130133
$this->assertEquals($expectedConfigData, $configData->getData());
131134
}
132135

133-
<<<<<<< HEAD
134-
=======
135-
/**
136-
* testCreateConfigWithRedis
137-
*/
138136
public function testCreateConfigWithFileCache()
139137
{
140138
$this->deploymentConfigMock->method('get')->willReturn('');
@@ -154,10 +152,6 @@ public function testCreateConfigWithFileCache()
154152
$this->assertEquals($expectedConfigData, $configData->getData());
155153
}
156154

157-
158-
/**
159-
* testCreateConfigCacheRedis
160-
*/
161155
public function testCreateConfigWithIdPrefix()
162156
{
163157
$this->deploymentConfigMock->method('get')->willReturn('');
@@ -181,10 +175,6 @@ public function testCreateConfigWithIdPrefix()
181175
$this->assertEquals($expectedConfigData, $configData->getData());
182176
}
183177

184-
/**
185-
* testValidationWithValidData
186-
*/
187-
>>>>>>> 12b7e08c2f26... Set cache id prefix on installation
188178
public function testValidationWithValidData()
189179
{
190180
$this->validatorMock->expects($this->once())

0 commit comments

Comments
 (0)