Skip to content

Commit 13126a5

Browse files
committed
MC-6273: Mysql url_rewrite select make on product view page 170+ times per request
- fixed unit tests
1 parent b80c9dc commit 13126a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/Magento/Framework/View/Test/Unit/Element/AbstractBlockTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ protected function setUp()
6565
$this->eventManagerMock = $this->getMockForAbstractClass(EventManagerInterface::class);
6666
$this->scopeConfigMock = $this->getMockForAbstractClass(ScopeConfigInterface::class);
6767
$this->cacheStateMock = $this->getMockForAbstractClass(CacheStateInterface::class);
68-
$this->lockQuery = $this->getMockForAbstractClass(LockGuardedCacheLoader::class);
68+
$this->lockQuery = $this->getMockBuilder(LockGuardedCacheLoader::class)
69+
->disableOriginalConstructor()
70+
->setMethods(['lockedLoadData'])
71+
->getMockForAbstractClass();
6972
$this->sidResolverMock = $this->getMockForAbstractClass(SidResolverInterface::class);
7073
$this->sessionMock = $this->getMockForAbstractClass(SessionManagerInterface::class);
7174
$contextMock = $this->createMock(Context::class);

0 commit comments

Comments
 (0)