Skip to content

Commit 7bc3696

Browse files
author
Bohdan Korablov
committed
MAGETWO-37720: Cover Tango modules w. unit tests S2 (+0.7% from current 13.6%)
1 parent 5f58dff commit 7bc3696

File tree

1 file changed

+4
-4
lines changed
  • app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Block

1 file changed

+4
-4
lines changed

app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Block/DeleteTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function setUp()
101101

102102
$this->contextMock = $this->getMock(
103103
'\Magento\Backend\App\Action\Context',
104-
['getRequest', 'getResultRedirectFactory', 'getMessageManager', 'getObjectManager'],
104+
[],
105105
[],
106106
'',
107107
false
@@ -148,7 +148,7 @@ public function testDeleteAction()
148148
->with('*/*/')
149149
->willReturnSelf();
150150

151-
$this->assertEquals($this->resultRedirectMock, $this->deleteController->execute());
151+
$this->assertSame($this->resultRedirectMock, $this->deleteController->execute());
152152
}
153153

154154
public function testDeleteActionNoId()
@@ -168,7 +168,7 @@ public function testDeleteActionNoId()
168168
->with('*/*/')
169169
->willReturnSelf();
170170

171-
$this->assertEquals($this->resultRedirectMock, $this->deleteController->execute());
171+
$this->assertSame($this->resultRedirectMock, $this->deleteController->execute());
172172
}
173173

174174
public function testDeleteActionThrowsException()
@@ -195,6 +195,6 @@ public function testDeleteActionThrowsException()
195195
->with('*/*/edit', ['block_id' => $this->blockId])
196196
->willReturnSelf();
197197

198-
$this->assertEquals($this->resultRedirectMock, $this->deleteController->execute());
198+
$this->assertSame($this->resultRedirectMock, $this->deleteController->execute());
199199
}
200200
}

0 commit comments

Comments
 (0)