Skip to content

Commit 4f9c5c3

Browse files
author
Igor Melnikov
committed
MAGETWO-58017: [GITHUB] Error creating configurable products in 2.1.1 #6424
Improving retrieving of the version
1 parent 94caf90 commit 4f9c5c3

File tree

1 file changed

+9
-9
lines changed
  • lib/internal/Magento/Framework/App/Test/Unit/View/Deployment

1 file changed

+9
-9
lines changed

lib/internal/Magento/Framework/App/Test/Unit/View/Deployment/VersionTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ public function getValueFromStorageDataProvider()
8282
}
8383

8484
/**
85-
* $param bool $unexpectedValueExceptionThrown
86-
* $param bool $fileSystemExceptionThrown
85+
* $param bool $isUnexpectedValueExceptionThrown
86+
* $param bool $isFileSystemExceptionThrown
8787
* @dataProvider getValueDefaultModeDataProvider
8888
*/
8989
public function testGetValueDefaultMode(
90-
$unexpectedValueExceptionThrown,
91-
$fileSystemExceptionThrown = null
90+
$isUnexpectedValueExceptionThrown,
91+
$isFileSystemExceptionThrown = null
9292
) {
9393
$versionType = 'integer';
9494
$this->appStateMock
9595
->expects($this->once())
9696
->method('getMode')
9797
->willReturn(\Magento\Framework\App\State::MODE_DEFAULT);
98-
if ($unexpectedValueExceptionThrown) {
98+
if ($isUnexpectedValueExceptionThrown) {
9999
$storageException = new \UnexpectedValueException('Does not exist in the storage');
100100
$this->versionStorageMock
101101
->expects($this->once())
@@ -104,7 +104,7 @@ public function testGetValueDefaultMode(
104104
$this->versionStorageMock->expects($this->once())
105105
->method('save')
106106
->with($this->isType($versionType));
107-
if ($fileSystemExceptionThrown) {
107+
if ($isFileSystemExceptionThrown) {
108108
$fileSystemException = new FileSystemException(
109109
new \Magento\Framework\Phrase('Can not load static content version')
110110
);
@@ -144,17 +144,17 @@ public function getValueDefaultModeDataProvider()
144144
}
145145

146146
/**
147-
* @param bool $unexpectedValueExceptionThrown
147+
* @param bool $isUnexpectedValueExceptionThrown
148148
* @dataProvider getValueProductionModeDataProvider
149149
*/
150150
public function testGetValueProductionMode(
151-
$unexpectedValueExceptionThrown
151+
$isUnexpectedValueExceptionThrown
152152
) {
153153
$this->appStateMock
154154
->expects($this->once())
155155
->method('getMode')
156156
->willReturn(\Magento\Framework\App\State::MODE_PRODUCTION);
157-
if ($unexpectedValueExceptionThrown) {
157+
if ($isUnexpectedValueExceptionThrown) {
158158
$storageException = new \UnexpectedValueException('Does not exist in the storage');
159159
$this->versionStorageMock
160160
->expects($this->once())

0 commit comments

Comments
 (0)