Skip to content

Commit 8e2e41a

Browse files
committed
PHPUnit 10: Unit test fixes
1 parent 23ca4b9 commit 8e2e41a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Customer/Test/Unit/Model/UrlTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ protected function setUp(): void
6363
->getMock();
6464
$this->requestMock = $this->getMockBuilder(RequestInterface::class)
6565
->disableOriginalConstructor()
66-
->setMethods(['isGet'])
66+
->addMethods(['isGet'])
6767
->getMockForAbstractClass();
6868
$this->customerSessionMock = $this->getMockBuilder(Session::class)
6969
->disableOriginalConstructor()
70-
->setMethods(['getNoReferer'])
70+
->addMethods(['getNoReferer'])
7171
->getMock();
7272
$this->urlBuilderMock = $this->getMockBuilder(UrlInterface::class)
7373
->disableOriginalConstructor()

0 commit comments

Comments
 (0)