Skip to content

Commit f61a27a

Browse files
committed
#29174 Fix PHPStan Test
1 parent 99da072 commit f61a27a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/CatalogUrlRewrite/Test/Unit/Plugin/Webapi/Controller/Rest/InputParamsResolverTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ public function testAfterResolveWithCategory()
137137
$this->request->expects($this->any())->method('getBodyParams')->willReturn($this->requestBodyParams);
138138
$this->subject = $this->createPartialMock(InputParamsResolver::class, ['getRoute']);
139139
$this->subject->expects($this->any())->method('getRoute')->willReturn($this->route);
140-
$this->category = $this->createPartialMock(Category::class, ['setData']);
140+
$category = $this->createPartialMock(Category::class, ['setData']);
141141

142-
$this->result = [false, $this->category, 'test'];
142+
$this->result = [false, $category, 'test'];
143143

144144
$this->objectManager = new ObjectManager($this);
145145
$this->plugin = $this->objectManager->getObject(
@@ -155,7 +155,7 @@ public function testAfterResolveWithCategory()
155155
$this->route->expects($this->once())
156156
->method('getServiceMethod')
157157
->willReturn('save');
158-
$this->category->expects($this->once())
158+
$category->expects($this->once())
159159
->method('setData')
160160
->with($this->saveRewritesHistory, true);
161161

0 commit comments

Comments
 (0)