File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
app/code/Magento/AdminAnalytics/Test/Unit/Condition Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \App \ProductMetadataInterface ;
12
12
use Magento \Framework \TestFramework \Unit \Helper \ObjectManager ;
13
13
use Magento \Framework \App \CacheInterface ;
14
+ use PHPUnit \Framework \MockObject \MockObject ;
15
+ use PHPUnit \Framework \TestCase ;
14
16
15
17
/**
16
18
* Class CanViewNotificationTest
17
19
*/
18
- class CanViewNotificationTest extends \ PHPUnit \ Framework \ TestCase
20
+ class CanViewNotificationTest extends TestCase
19
21
{
20
22
/** @var CanViewNotification */
21
23
private $ canViewNotification ;
22
24
23
- /** @var Logger|\PHPUnit_Framework_MockObject_MockObject */
25
+ /** @var Logger|MockObject */
24
26
private $ viewerLoggerMock ;
25
27
26
- /** @var ProductMetadataInterface|\PHPUnit_Framework_MockObject_MockObject */
28
+ /** @var ProductMetadataInterface|MockObject */
27
29
private $ productMetadataMock ;
28
30
29
- /** @var Log|\PHPUnit_Framework_MockObject_MockObject */
31
+ /** @var Log|MockObject */
30
32
private $ logMock ;
31
33
32
- /** @var $cacheStorageMock \PHPUnit_Framework_MockObject_MockObject |CacheInterface */
34
+ /** @var $cacheStorageMock MockObject |CacheInterface */
33
35
private $ cacheStorageMock ;
34
36
35
- public function setUp ()
37
+ protected function setUp (): void
36
38
{
37
39
$ this ->cacheStorageMock = $ this ->getMockBuilder (CacheInterface::class)
38
40
->getMockForAbstractClass ();
You can’t perform that action at this time.
0 commit comments