Skip to content

Commit 2cc3c73

Browse files
ENGCOM-7745: #28829 Fixing multiple typos #28832
- Merge Pull Request #28832 from pgrimaud/magento2:2.4-develop - Merged commits: 1. ae076d6
2 parents cb1719f + ae076d6 commit 2cc3c73

File tree

13 files changed

+38
-38
lines changed

13 files changed

+38
-38
lines changed

app/code/Magento/Authorization/Test/Unit/Model/ResourceModel/RulesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function testSaveRelNoResources()
182182
/**
183183
* Test LocalizedException throw case.
184184
*/
185-
public function testLocalizedExceptionOccurance()
185+
public function testLocalizedExceptionOccurrence()
186186
{
187187
$this->expectException(LocalizedException::class);
188188
$this->expectExceptionMessage("TestException");
@@ -212,7 +212,7 @@ public function testLocalizedExceptionOccurance()
212212
/**
213213
* Test generic exception throw case.
214214
*/
215-
public function testGenericExceptionOccurance()
215+
public function testGenericExceptionOccurrence()
216216
{
217217
$exception = new \Exception('GenericException');
218218

app/code/Magento/Bundle/Test/Unit/Controller/Adminhtml/Product/Initialization/Helper/Plugin/BundleTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ public function testAfterInitializeIfBundleAnsCustomOptionsAndBundleSelectionsEx
150150
$this->productMock->expects($this->once())
151151
->method('getBundleOptionsData')
152152
->willReturn(['option_1' => ['delete' => 1]]);
153-
$extentionAttribute = $this->getMockBuilder(ProductExtensionInterface::class)
153+
$extensionAttribute = $this->getMockBuilder(ProductExtensionInterface::class)
154154
->disableOriginalConstructor()
155155
->setMethods(['setBundleProductOptions'])
156156
->getMockForAbstractClass();
157-
$extentionAttribute->expects($this->once())->method('setBundleProductOptions')->with([]);
158-
$this->productMock->expects($this->once())->method('getExtensionAttributes')->willReturn($extentionAttribute);
159-
$this->productMock->expects($this->once())->method('setExtensionAttributes')->with($extentionAttribute);
157+
$extensionAttribute->expects($this->once())->method('setBundleProductOptions')->with([]);
158+
$this->productMock->expects($this->once())->method('getExtensionAttributes')->willReturn($extensionAttribute);
159+
$this->productMock->expects($this->once())->method('setExtensionAttributes')->with($extensionAttribute);
160160

161161
$this->model->afterInitialize($this->subjectMock, $this->productMock);
162162
}
@@ -191,14 +191,14 @@ public function testAfterInitializeIfBundleOptionsNotExist(): void
191191
['affect_bundle_product_selections', null, false],
192192
];
193193
$this->requestMock->expects($this->any())->method('getPost')->willReturnMap($valueMap);
194-
$extentionAttribute = $this->getMockBuilder(ProductExtensionInterface::class)
194+
$extensionAttribute = $this->getMockBuilder(ProductExtensionInterface::class)
195195
->disableOriginalConstructor()
196196
->setMethods(['setBundleProductOptions'])
197197
->getMockForAbstractClass();
198-
$extentionAttribute->expects($this->once())->method('setBundleProductOptions')->with([]);
198+
$extensionAttribute->expects($this->once())->method('setBundleProductOptions')->with([]);
199199
$this->productMock->expects($this->any())->method('getCompositeReadonly')->willReturn(false);
200-
$this->productMock->expects($this->once())->method('getExtensionAttributes')->willReturn($extentionAttribute);
201-
$this->productMock->expects($this->once())->method('setExtensionAttributes')->with($extentionAttribute);
200+
$this->productMock->expects($this->once())->method('getExtensionAttributes')->willReturn($extensionAttribute);
201+
$this->productMock->expects($this->once())->method('setExtensionAttributes')->with($extensionAttribute);
202202
$this->productMock->expects($this->once())->method('setCanSaveBundleSelections')->with(false);
203203

204204
$this->model->afterInitialize($this->subjectMock, $this->productMock);

app/code/Magento/Cms/Test/Unit/Model/PageRepository/ValidationCompositeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testConstructorValidation($validators)
4343
new ValidationComposite($this->subject, $validators);
4444
}
4545

46-
public function testSaveInvokesValidatorsWithSucess()
46+
public function testSaveInvokesValidatorsWithSuccess()
4747
{
4848
$validator1 = $this->getMockForAbstractClass(ValidatorInterface::class);
4949
$validator2 = $this->getMockForAbstractClass(ValidatorInterface::class);

app/code/Magento/ConfigurableProduct/Test/Unit/Plugin/Product/Initialization/CleanConfigurationTmpImagesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CleanConfigurationTmpImagesTest extends TestCase
6464
/**
6565
* @var Json|MockObject
6666
*/
67-
private $seralizer;
67+
private $serializer;
6868

6969
/**
7070
* @var ProductInitializationHelper|MockObject
@@ -87,7 +87,7 @@ protected function setUp(): void
8787
$this->writeFolder = $this->getMockBuilder(Write::class)
8888
->disableOriginalConstructor()
8989
->getMock();
90-
$this->seralizer = $this->getMockBuilder(Json::class)
90+
$this->serializer = $this->getMockBuilder(Json::class)
9191
->disableOriginalConstructor()
9292
->getMock();
9393
$this->subjectMock = $this->getMockBuilder(ProductInitializationHelper::class)
@@ -106,7 +106,7 @@ protected function setUp(): void
106106
'fileStorageDb' => $this->fileStorageDb,
107107
'mediaConfig' => $this->mediaConfig,
108108
'filesystem' => $this->filesystem,
109-
'seralizer' => $this->seralizer
109+
'serializer' => $this->serializer
110110
]
111111
);
112112
}

app/code/Magento/Cookie/Test/Unit/Helper/CookieTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,6 @@ public function getConfigMethodStub($hashName)
162162
return $defaultConfig[$hashName];
163163
}
164164

165-
throw new \InvalidArgumentException('Unknow id = ' . $hashName);
165+
throw new \InvalidArgumentException('Unknown id = ' . $hashName);
166166
}
167167
}

app/code/Magento/Customer/Model/ResourceModel/Address/Grid/Collection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public function addFieldToFilter($field, $condition = null)
185185
{
186186
if ($field === 'region') {
187187
$conditionSql = $this->_getConditionSql(
188-
$this->getRegionNameExpresion(),
188+
$this->getRegionNameExpression(),
189189
$condition
190190
);
191191
$this->getSelect()->where($conditionSql);
@@ -211,7 +211,7 @@ public function addFullTextFilter(string $value)
211211
$whereCondition = '';
212212
foreach ($fields as $key => $field) {
213213
$field = $field === 'region'
214-
? $this->getRegionNameExpresion()
214+
? $this->getRegionNameExpression()
215215
: 'main_table.' . $field;
216216
$condition = $this->_getConditionSql(
217217
$this->getConnection()->quoteIdentifier($field),
@@ -246,18 +246,18 @@ private function joinRegionNameTable()
246246
)->joinLeft(
247247
['rnt' => $this->getTable('directory_country_region_name')],
248248
"rnt.region_id={$regionIdField} AND {$localeCondition}",
249-
['region' => $this->getRegionNameExpresion()]
249+
['region' => $this->getRegionNameExpression()]
250250
);
251251

252252
return $this;
253253
}
254254

255255
/**
256-
* Get SQL Expresion to define Region Name field by locale
256+
* Get SQL Expression to define Region Name field by locale
257257
*
258258
* @return \Zend_Db_Expr
259259
*/
260-
private function getRegionNameExpresion(): \Zend_Db_Expr
260+
private function getRegionNameExpression(): \Zend_Db_Expr
261261
{
262262
$connection = $this->getConnection();
263263
$defaultNameExpr = $connection->getIfNullSql(

app/code/Magento/Customer/Model/ResourceModel/Grid/Collection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function addFieldToFilter($field, $condition = null)
7474
{
7575
if ($field === 'billing_region') {
7676
$conditionSql = $this->_getConditionSql(
77-
$this->getRegionNameExpresion(),
77+
$this->getRegionNameExpression(),
7878
$condition
7979
);
8080
$this->getSelect()->where($conditionSql);
@@ -100,7 +100,7 @@ public function addFullTextFilter(string $value)
100100
$whereCondition = '';
101101
foreach ($fields as $key => $field) {
102102
$field = $field === 'billing_region'
103-
? $this->getRegionNameExpresion()
103+
? $this->getRegionNameExpression()
104104
: 'main_table.' . $field;
105105
$condition = $this->_getConditionSql(
106106
$this->getConnection()->quoteIdentifier($field),
@@ -152,18 +152,18 @@ private function joinRegionNameTable()
152152
)->joinLeft(
153153
['rnt' => $this->getTable('directory_country_region_name')],
154154
"rnt.region_id={$regionIdField} AND {$localeCondition}",
155-
['billing_region' => $this->getRegionNameExpresion()]
155+
['billing_region' => $this->getRegionNameExpression()]
156156
);
157157

158158
return $this;
159159
}
160160

161161
/**
162-
* Get SQL Expresion to define Region Name field by locale
162+
* Get SQL Expression to define Region Name field by locale
163163
*
164164
* @return \Zend_Db_Expr
165165
*/
166-
private function getRegionNameExpresion(): \Zend_Db_Expr
166+
private function getRegionNameExpression(): \Zend_Db_Expr
167167
{
168168
$connection = $this->getConnection();
169169
$defaultNameExpr = $connection->getIfNullSql(

app/code/Magento/Paypal/Model/Api/Nvp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ protected function _validateResponse($method, $response)
14231423
*/
14241424
protected function _deformatNVP($nvpstr)
14251425
{
1426-
$intial = 0;
1426+
$initial = 0;
14271427
$nvpArray = [];
14281428

14291429
$nvpstr = strpos($nvpstr, "\r\n\r\n") !== false ? substr($nvpstr, strpos($nvpstr, "\r\n\r\n") + 4) : $nvpstr;
@@ -1435,7 +1435,7 @@ protected function _deformatNVP($nvpstr)
14351435
$valuepos = strpos($nvpstr, '&') ? strpos($nvpstr, '&') : strlen($nvpstr);
14361436

14371437
/*getting the Key and Value values and storing in a Associative Array*/
1438-
$keyval = substr($nvpstr, $intial, $keypos);
1438+
$keyval = substr($nvpstr, $initial, $keypos);
14391439
$valval = substr($nvpstr, $keypos + 1, $valuepos - $keypos - 1);
14401440
//decoding the response
14411441
$nvpArray[urldecode($keyval)] = urldecode($valval);

dev/tests/integration/testsuite/Magento/Captcha/Observer/ResetAttemptForFrontendObserverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function setUp(): void
3434
/**
3535
* @magentoDataFixture Magento/Captcha/_files/failed_logins_frontend.php
3636
*/
37-
public function testSuccesfulLoginRemovesFailedAttempts()
37+
public function testSuccessfulLoginRemovesFailedAttempts()
3838
{
3939
$customerEmail = 'mageuser@dummy.com';
4040
$customerFactory = $this->objectManager->get(CustomerFactory::class);

dev/tests/integration/testsuite/Magento/Sales/CustomerData/LastOrderedItemsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testDefaultFormatterIsAppliedWhenBasicIntegration()
4242
$this->assertEquals(
4343
LastOrderedItems::SIDEBAR_ORDER_LIMIT,
4444
count($data['items']),
45-
'Section items count should not be greater then ' . LastOrderedItems::SIDEBAR_ORDER_LIMIT
45+
'Section items count should not be greater than ' . LastOrderedItems::SIDEBAR_ORDER_LIMIT
4646
);
4747
}
4848
}

0 commit comments

Comments
 (0)