File tree 2 files changed +1
-23
lines changed
Catalog/Test/Unit/Model/ResourceModel/Product
Reports/Test/Unit/Model/ResourceModel/Product 2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change 23
23
use Magento \Framework \Event ;
24
24
use Magento \Framework \Model \ResourceModel \ResourceModelPoolInterface ;
25
25
use Magento \Framework \Stdlib \DateTime \TimezoneInterface ;
26
- use Magento \Framework \TestFramework ;
27
26
use Magento \Store \Api \Data \StoreInterface ;
28
27
use Magento \Store \Model \StoreManagerInterface ;
29
28
use PHPUnit \Framework \TestCase ;
@@ -84,7 +83,7 @@ class CollectionTest extends TestCase
84
83
*/
85
84
protected function setUp ()
86
85
{
87
- $ this ->objectManager = new TestFramework \Unit \Helper \ObjectManager ($ this );
86
+ $ this ->objectManager = new \ Magento \ Framework \ TestFramework \Unit \Helper \ObjectManager ($ this );
88
87
$ this ->selectMock = $ this ->createMock (DB \Select::class);
89
88
$ this ->connectionMock = $ this ->createMock (DB \Adapter \AdapterInterface::class);
90
89
$ this ->connectionMock ->expects ($ this ->atLeastOnce ())->method ('select ' )->willReturn ($ this ->selectMock );
Original file line number Diff line number Diff line change @@ -249,25 +249,4 @@ public function testAddViewsCount()
249
249
250
250
$ this ->collection ->addViewsCount ();
251
251
}
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
- }
273
252
}
You can’t perform that action at this time.
0 commit comments