Skip to content

Commit 2ff65ff

Browse files
author
vpaladiychuk
committed
MAGETWO-35534: Unit Tests code coverage failures - Captcha and View
1 parent 973c027 commit 2ff65ff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dev/tests/integration/testsuite/Magento/Email/Model/TemplateTest.php

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public function testGetVariablesOptionArrayInGroup()
269269
}
270270

271271
/**
272-
* @expectedException \Magento\Framework\Mail\Exception
272+
* @expectedException \Magento\Framework\Exception\MailException
273273
* @expectedExceptionMessage The template Name must not be empty.
274274
*/
275275
public function testBeforeSaveEmptyTemplateCode()

lib/internal/Magento/Framework/App/Test/Unit/View/Deployment/VersionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function getValueFromStorageDataProvider()
7070

7171
public function testGetValueDefaultModeSaving()
7272
{
73+
$versionType = 'integer';
7374
$this->appState
7475
->expects($this->once())
7576
->method('getMode')
@@ -79,8 +80,8 @@ public function testGetValueDefaultModeSaving()
7980
->expects($this->once())
8081
->method('load')
8182
->will($this->throwException($storageException));
82-
$this->versionStorage->expects($this->once())->method('save')->with($this->equalTo(time(), 5));
83-
$this->assertEquals(time(), $this->object->getValue());
83+
$this->versionStorage->expects($this->once())->method('save')->with($this->isType($versionType));
84+
$this->assertInternalType($versionType, $this->object->getValue());
8485
$this->object->getValue(); // Ensure caching in memory
8586
}
8687
}

0 commit comments

Comments
 (0)