Skip to content

Commit bf05a8b

Browse files
author
Dale Sikkema
committed
MAGETWO-34447: Pull Request for Sprint 46 stories
1 parent c2c2972 commit bf05a8b

File tree

1 file changed

+10
-10
lines changed
  • dev/tests/unit/testsuite/Magento/AdminNotification/Model

1 file changed

+10
-10
lines changed

dev/tests/unit/testsuite/Magento/AdminNotification/Model/FeedTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class FeedTest extends \PHPUnit_Framework_TestCase
1616
/** @var ObjectManagerHelper */
1717
protected $objectManagerHelper;
1818

19-
/** @var \PHPUnit_Framework_MockObject_MockObject */
19+
/** @var \Magento\AdminNotification\Model\InboxFactory|\PHPUnit_Framework_MockObject_MockObject */
2020
protected $inboxFactory;
2121

2222
/** @var \Magento\AdminNotification\Model\Inbox|\PHPUnit_Framework_MockObject_MockObject */
@@ -40,21 +40,21 @@ class FeedTest extends \PHPUnit_Framework_TestCase
4040
/** @var \Magento\Framework\App\DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject */
4141
protected $deploymentConfig;
4242

43-
/** @var \Magento\Framework\App\DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject */
43+
/** @var \Magento\Framework\App\ProductMetadata|\PHPUnit_Framework_MockObject_MockObject */
4444
protected $productMetadata;
4545

46-
/** @var \Magento\Framework\App\DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject */
46+
/** @var \Magento\Framework\Url|\PHPUnit_Framework_MockObject_MockObject */
4747
protected $urlBuilder;
4848

4949
protected function setUp()
5050
{
5151
$this->inboxFactory = $this->getMock('Magento\AdminNotification\Model\InboxFactory', ['create'], [], '', false);
52-
$this->curlFactory = $this->getMock('\Magento\Framework\HTTP\Adapter\CurlFactory', ['create'], [], '', false);
53-
$this->curl = $this->getMockBuilder('\Magento\Framework\HTTP\Adapter\Curl')
52+
$this->curlFactory = $this->getMock('Magento\Framework\HTTP\Adapter\CurlFactory', ['create'], [], '', false);
53+
$this->curl = $this->getMockBuilder('Magento\Framework\HTTP\Adapter\Curl')
5454
->disableOriginalConstructor()->getMock();
55-
$this->appState = $this->getMock('\Magento\Framework\App\State', ['getInstallDate'], [], '', false);
55+
$this->appState = $this->getMock('Magento\Framework\App\State', ['getInstallDate'], [], '', false);
5656
$this->inboxModel = $this->getMock(
57-
'\Magento\AdminNotification\Model\Inbox',
57+
'Magento\AdminNotification\Model\Inbox',
5858
[
5959
'__wakeup',
6060
'parse'
@@ -72,7 +72,7 @@ protected function setUp()
7272
]
7373
);
7474
$this->cacheManager = $this->getMock(
75-
'\Magento\Framework\App\CacheInterface',
75+
'Magento\Framework\App\CacheInterface',
7676
[
7777
'load',
7878
'getFrontend',
@@ -82,7 +82,7 @@ protected function setUp()
8282
]
8383
);
8484

85-
$this->deploymentConfig = $this->getMockBuilder('\Magento\Framework\App\DeploymentConfig')
85+
$this->deploymentConfig = $this->getMockBuilder('Magento\Framework\App\DeploymentConfig')
8686
->disableOriginalConstructor()->getMock();
8787
$this->objectManagerHelper = new ObjectManagerHelper($this);
8888

@@ -112,7 +112,7 @@ protected function setUp()
112112
public function testCheckUpdate($callInbox, $curlRequest)
113113
{
114114
$mockName = 'Test Product Name';
115-
$mockVersion = '0.42.0-beta7';
115+
$mockVersion = '0.0.0';
116116
$mockEdition = 'Test Edition';
117117
$mockUrl = 'http://test-url';
118118

0 commit comments

Comments
 (0)