Skip to content

Commit dc72851

Browse files
committed
Fix typo in variable name
1 parent 047d038 commit dc72851

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Cms/Test/Unit/Controller/RouterTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function setUp()
7878
public function testMatchCmsControllerRouterMatchBeforeEventParams()
7979
{
8080
$identifier = '/test';
81-
$trimedIdentifier = 'test';
81+
$trimmedIdentifier = 'test';
8282
$pageId = 1;
8383
$storeId = 1;
8484

@@ -114,10 +114,10 @@ public function testMatchCmsControllerRouterMatchBeforeEventParams()
114114
->willReturnSelf();
115115
$requestMock->expects($this->once())
116116
->method('setAlias')
117-
->with(\Magento\Framework\Url::REWRITE_REQUEST_PATH_ALIAS, $trimedIdentifier)
117+
->with(\Magento\Framework\Url::REWRITE_REQUEST_PATH_ALIAS, $trimmedIdentifier)
118118
->willReturnSelf();
119119

120-
$condition = new \Magento\Framework\DataObject(['identifier' => $trimedIdentifier, 'continue' => true]);
120+
$condition = new \Magento\Framework\DataObject(['identifier' => $trimmedIdentifier, 'continue' => true]);
121121

122122
$this->eventManagerMock->expects($this->once())
123123
->method('dispatch')
@@ -135,7 +135,7 @@ public function testMatchCmsControllerRouterMatchBeforeEventParams()
135135
->getMock();
136136
$pageMock->expects($this->once())
137137
->method('checkIdentifier')
138-
->with($trimedIdentifier, $storeId)
138+
->with($trimmedIdentifier, $storeId)
139139
->willReturn($pageId);
140140

141141
$this->pageFactoryMock->expects($this->once())

0 commit comments

Comments
 (0)