Skip to content

Commit b5aff86

Browse files
author
rossbrandon
committed
MAGETWO-85063: Create a framework for dynamically composing what's new content
1 parent d891f87 commit b5aff86

File tree

1 file changed

+3
-9
lines changed
  • dev/tests/integration/testsuite/Magento/ReleaseNotification/Controller/Adminhtml/Dashboard

1 file changed

+3
-9
lines changed

dev/tests/integration/testsuite/Magento/ReleaseNotification/Controller/Adminhtml/Dashboard/IndexTest.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ protected function setUp()
2828
$this->contentProviderMock = $this->getMockBuilder(HttpContentProvider::class)
2929
->disableOriginalConstructor()
3030
->getMock();
31-
$this->contentProviderMock->expects($this->any())
32-
->method('getTargetVersion')
33-
->willReturn('version');
34-
$this->contentProviderMock->expects($this->any())
35-
->method('getEdition')
36-
->willReturn('edition');
37-
$this->contentProviderMock->expects($this->any())
38-
->method('getLocale')
39-
->willReturn('locale');
4031
$this->objectManager->addSharedInstance($this->contentProviderMock, HttpContentProvider::class);
4132
}
4233

@@ -56,6 +47,7 @@ public function testExecute()
5647
CacheCleaner::cleanAll();
5748
$this->contentProviderMock->expects($this->any())
5849
->method('getContent')
50+
->with('2.3.0', 'Community', 'en_US')
5951
->willReturn($content);
6052

6153
$this->dispatch('backend/admin/dashboard/index/');
@@ -74,6 +66,7 @@ public function testExecuteEmptyContent()
7466
CacheCleaner::cleanAll();
7567
$this->contentProviderMock->expects($this->any())
7668
->method('getContent')
69+
->with('2.3.0', 'Community', 'en_US')
7770
->willReturn('[]');
7871

7972
$this->dispatch('backend/admin/dashboard/index/');
@@ -89,6 +82,7 @@ public function testExecuteFalseContent()
8982
CacheCleaner::cleanAll();
9083
$this->contentProviderMock->expects($this->any())
9184
->method('getContent')
85+
->with('2.3.0', 'Community', 'en_US')
9286
->willReturn(false);
9387

9488
$this->dispatch('backend/admin/dashboard/index/');

0 commit comments

Comments
 (0)