Skip to content

Commit 8016e51

Browse files
schmenglersivaschenko
authored andcommitted
Remove unused code
1 parent d939800 commit 8016e51

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/CollectionTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
use Magento\Framework\Event;
2424
use Magento\Framework\Model\ResourceModel\ResourceModelPoolInterface;
2525
use Magento\Framework\Stdlib\DateTime\TimezoneInterface;
26-
use Magento\Framework\TestFramework;
2726
use Magento\Store\Api\Data\StoreInterface;
2827
use Magento\Store\Model\StoreManagerInterface;
2928
use PHPUnit\Framework\TestCase;
@@ -84,7 +83,7 @@ class CollectionTest extends TestCase
8483
*/
8584
protected function setUp()
8685
{
87-
$this->objectManager = new TestFramework\Unit\Helper\ObjectManager($this);
86+
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
8887
$this->selectMock = $this->createMock(DB\Select::class);
8988
$this->connectionMock = $this->createMock(DB\Adapter\AdapterInterface::class);
9089
$this->connectionMock->expects($this->atLeastOnce())->method('select')->willReturn($this->selectMock);

app/code/Magento/Reports/Test/Unit/Model/ResourceModel/Product/CollectionTest.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -249,25 +249,4 @@ public function testAddViewsCount()
249249

250250
$this->collection->addViewsCount();
251251
}
252-
253-
/**
254-
* Get mock for abstract class with methods.
255-
*
256-
* @param string $className
257-
* @param array $methods
258-
*
259-
* @return \PHPUnit_Framework_MockObject_MockObject
260-
*/
261-
private function createPartialMockForAbstractClass($className, $methods)
262-
{
263-
return $this->getMockForAbstractClass(
264-
$className,
265-
[],
266-
'',
267-
true,
268-
true,
269-
true,
270-
$methods
271-
);
272-
}
273252
}

0 commit comments

Comments
 (0)