File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
dev/tests/integration/testsuite/Magento/Email/Model
lib/internal/Magento/Framework/App/Test/Unit/View/Deployment Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ public function testGetVariablesOptionArrayInGroup()
269
269
}
270
270
271
271
/**
272
- * @expectedException \Magento\Framework\Mail\ Exception
272
+ * @expectedException \Magento\Framework\Exception\MailException
273
273
* @expectedExceptionMessage The template Name must not be empty.
274
274
*/
275
275
public function testBeforeSaveEmptyTemplateCode ()
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ public function getValueFromStorageDataProvider()
70
70
71
71
public function testGetValueDefaultModeSaving ()
72
72
{
73
+ $ versionType = 'integer ' ;
73
74
$ this ->appState
74
75
->expects ($ this ->once ())
75
76
->method ('getMode ' )
@@ -79,8 +80,8 @@ public function testGetValueDefaultModeSaving()
79
80
->expects ($ this ->once ())
80
81
->method ('load ' )
81
82
->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 ());
84
85
$ this ->object ->getValue (); // Ensure caching in memory
85
86
}
86
87
}
You can’t perform that action at this time.
0 commit comments