Skip to content

Commit 59827b7

Browse files
author
Oleksii Korshenko
authored
MAGETWO-86798: Fix a misspelled parameter name in TaxTest #13189
2 parents 65c0a93 + 0b1fcaf commit 59827b7

File tree

15 files changed

+47
-34
lines changed

15 files changed

+47
-34
lines changed

app/code/Magento/Backend/Test/Unit/Model/Menu/ConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testGetMenuWithCachedObjectReturnsUnserializedObject()
9696
$this->assertEquals($this->menuMock, $this->model->getMenu());
9797
}
9898

99-
public function testGetMenuWithNotCachedObjectBuidlsObject()
99+
public function testGetMenuWithNotCachedObjectBuildsObject()
100100
{
101101
$this->cacheInstanceMock->expects(
102102
$this->at(0)

app/code/Magento/Braintree/Test/Unit/Gateway/Config/CanVoidHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function testHandleNotOrderPayment()
3939
static::assertFalse($voidHandler->handle($subject));
4040
}
4141

42-
public function testHandleSomeAmoutWasPaid()
42+
public function testHandleSomeAmountWasPaid()
4343
{
4444
$paymentDO = $this->createMock(PaymentDataObjectInterface::class);
4545
$subject = [

app/code/Magento/Braintree/Test/Unit/Model/Report/TransactionsCollectionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ public function testGetItemsEmptyCollection()
125125
*/
126126
public function testGetItemsWithLimit()
127127
{
128-
$transations = range(1, TransactionsCollection::TRANSACTION_MAXIMUM_COUNT + 10);
128+
$transactions = range(1, TransactionsCollection::TRANSACTION_MAXIMUM_COUNT + 10);
129129

130130
$this->filterMapperMock->expects($this->once())
131131
->method('getFilter')
132132
->willReturn(new BraintreeSearchNodeStub());
133133

134134
$this->braintreeAdapterMock->expects($this->once())
135135
->method('search')
136-
->willReturn($transations);
136+
->willReturn($transactions);
137137

138138
$this->entityFactoryMock->expects($this->exactly(TransactionsCollection::TRANSACTION_MAXIMUM_COUNT))
139139
->method('create')
@@ -157,15 +157,15 @@ public function testGetItemsWithLimit()
157157
*/
158158
public function testGetItemsWithNullLimit()
159159
{
160-
$transations = range(1, TransactionsCollection::TRANSACTION_MAXIMUM_COUNT + 10);
160+
$transactions = range(1, TransactionsCollection::TRANSACTION_MAXIMUM_COUNT + 10);
161161

162162
$this->filterMapperMock->expects($this->once())
163163
->method('getFilter')
164164
->willReturn(new BraintreeSearchNodeStub());
165165

166166
$this->braintreeAdapterMock->expects($this->once())
167167
->method('search')
168-
->willReturn($transations);
168+
->willReturn($transactions);
169169

170170
$this->entityFactoryMock->expects($this->exactly(TransactionsCollection::TRANSACTION_MAXIMUM_COUNT))
171171
->method('create')

app/code/Magento/Bundle/Test/Unit/Model/Product/TypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ public function testPrepareForCartAdvancedParentClassReturnString()
13651365
/**
13661366
* @return void
13671367
*/
1368-
public function testPrepareForCartAdvancedAllrequiredOption()
1368+
public function testPrepareForCartAdvancedAllRequiredOption()
13691369
{
13701370
/** @var \PHPUnit_Framework_MockObject_MockObject|DefaultType $group */
13711371
$group = $this->getMockBuilder(\Magento\Catalog\Model\Product\Option\Type\DefaultType::class)

app/code/Magento/Catalog/Model/ResourceModel/Product/Link/DeleteHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public function execute($entityType, $entity)
7272
$linkedProduct = $this->productRepository->get($entity->getLinkedProductSku());
7373
$product = $this->productRepository->get($entity->getSku());
7474
$linkTypesToId = $this->linkTypeProvider->getLinkTypes();
75-
$prodyctHydrator = $this->metadataPool->getHydrator(ProductInterface::class);
76-
$productData = $prodyctHydrator->extract($product);
75+
$productHydrator = $this->metadataPool->getHydrator(ProductInterface::class);
76+
$productData = $productHydrator->extract($product);
7777
$linkId = $this->linkResource->getProductLinkId(
7878
$productData[$this->metadataPool->getMetadata(ProductInterface::class)->getLinkField()],
7979
$linkedProduct->getId(),

app/code/Magento/Catalog/Model/ResourceModel/Product/Link/SaveHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public function execute($entityType, $entity)
9797

9898
try {
9999
$linkTypesToId = $this->linkTypeProvider->getLinkTypes();
100-
$prodyctHydrator = $this->metadataPool->getHydrator(ProductInterface::class);
101-
$productData = $prodyctHydrator->extract($product);
100+
$productHydrator = $this->metadataPool->getHydrator(ProductInterface::class);
101+
$productData = $productHydrator->extract($product);
102102
$this->linkResource->saveProductLinks(
103103
$productData[$this->metadataPool->getMetadata(ProductInterface::class)->getLinkField()],
104104
$links,

app/code/Magento/Catalog/Test/Unit/Block/Category/ViewTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ protected function tearDown()
3131
public function testGetIdentities()
3232
{
3333
$categoryTag = ['catalog_category_1'];
34-
$currentCatogoryMock = $this->createMock(\Magento\Catalog\Model\Category::class);
35-
$currentCatogoryMock->expects($this->once())->method('getIdentities')->will($this->returnValue($categoryTag));
36-
$this->block->setCurrentCategory($currentCatogoryMock);
34+
$currentCategoryMock = $this->createMock(\Magento\Catalog\Model\Category::class);
35+
$currentCategoryMock->expects($this->once())->method('getIdentities')->will($this->returnValue($categoryTag));
36+
$this->block->setCurrentCategory($currentCategoryMock);
3737
$this->assertEquals($categoryTag, $this->block->getIdentities());
3838
}
3939
}

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Category/MoveTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function testExecuteWithGenericException()
115115
$layoutMock->expects($this->once())
116116
->method('getMessagesBlock')
117117
->willReturn($messageBlock);
118-
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
118+
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
119119
->disableOriginalConstructor()
120120
->getMock();
121121
$registry = $this->getMockBuilder(Registry::class)
@@ -135,7 +135,7 @@ public function testExecuteWithGenericException()
135135
$this->objectManager->expects($this->any())
136136
->method('get')
137137
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
138-
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
138+
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
139139
$categoryMock->expects($this->once())
140140
->method('move')
141141
->willThrowException(new \Exception(
@@ -189,7 +189,7 @@ public function testExecuteWithLocaliedException()
189189
$layoutMock->expects($this->once())
190190
->method('getMessagesBlock')
191191
->willReturn($messageBlock);
192-
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
192+
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
193193
->disableOriginalConstructor()
194194
->getMock();
195195
$registry = $this->getMockBuilder(Registry::class)
@@ -209,7 +209,7 @@ public function testExecuteWithLocaliedException()
209209
$this->objectManager->expects($this->any())
210210
->method('get')
211211
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
212-
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
212+
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
213213
$this->messageManager->expects($this->once())
214214
->method('addExceptionMessage');
215215
$this->messageManager->expects($this->once())
@@ -261,7 +261,7 @@ public function testSuccessfullCategorySave()
261261
$layoutMock->expects($this->once())
262262
->method('getMessagesBlock')
263263
->willReturn($messageBlock);
264-
$wysiwigConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
264+
$wysiwygConfig = $this->getMockBuilder(\Magento\Cms\Model\Wysiwyg\Config::class)
265265
->disableOriginalConstructor()
266266
->getMock();
267267
$registry = $this->getMockBuilder(Registry::class)
@@ -281,7 +281,7 @@ public function testSuccessfullCategorySave()
281281
$this->objectManager->expects($this->any())
282282
->method('get')
283283
->withConsecutive([Registry::class], [Registry::class], [\Magento\Cms\Model\Wysiwyg\Config::class])
284-
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwigConfig]]);
284+
->willReturnMap([[Registry::class, $registry], [\Magento\Cms\Model\Wysiwyg\Config::class, $wysiwygConfig]]);
285285
$this->messageManager->expects($this->once())
286286
->method('getMessages')
287287
->with(true)

app/code/Magento/Catalog/Test/Unit/CustomerData/ProductsRenderInfoSectionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,18 @@ public function testGetSectionData()
134134
->expects($this->once())
135135
->method('create')
136136
->willReturn($filterMock);
137-
$searchCritera = $this->createMock(SearchCriteria::class);
137+
$searchCriteria = $this->createMock(SearchCriteria::class);
138138
$this->searchCriteriaBuilderMock
139139
->expects($this->once())
140140
->method('addFilters')
141141
->with([$filterMock])
142142
->willReturnSelf();
143143
$this->searchCriteriaBuilderMock->expects($this->once())
144144
->method('create')
145-
->willReturn($searchCritera);
145+
->willReturn($searchCriteria);
146146
$this->productRenderRepositoryMock->expects($this->once())
147147
->method('getList')
148-
->with($searchCritera, 3, 'UAH')
148+
->with($searchCriteria, 3, 'UAH')
149149
->willReturn($searchResult);
150150
$searchResult->expects($this->any())
151151
->method('getItems')

app/code/Magento/Config/Model/Config/Backend/Admin/Custom.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ class Custom extends \Magento\Framework\App\Config\Value
2929
const XML_PATH_ADMIN_SECURITY_USEFORMKEY = 'admin/security/use_form_key';
3030
const XML_PATH_MAINTENANCE_MODE = 'maintenance_mode';
3131
const XML_PATH_WEB_COOKIE_COOKIE_LIFETIME = 'web/cookie/cookie_lifetime';
32+
/**
33+
* @deprecated Misspelled constant - use XML_PATH_WEB_COOKIE_COOKIE_PATH instead
34+
*/
3235
const XML_PATH_WEB_COOKIE_COOKE_PATH = 'web/cookie/cookie_path';
36+
const XML_PATH_WEB_COOKIE_COOKIE_PATH = 'web/cookie/cookie_path';
3337
const XML_PATH_WEB_COOKIE_COOKIE_DOMAIN = 'web/cookie/cookie_domain';
3438
const XML_PATH_WEB_COOKIE_HTTPONLY = 'web/cookie/cookie_httponly';
3539
const XML_PATH_WEB_COOKIE_RESTRICTION = 'web/cookie/cookie_restriction';

0 commit comments

Comments
 (0)