@@ -21,7 +21,6 @@ class ValidationMessageTest extends \PHPUnit\Framework\TestCase
2121
2222 /**
2323 * @var \PHPUnit_Framework_MockObject_MockObject
24- * @deprecated since 101.0.0
2524 */
2625 private $ storeManagerMock ;
2726
@@ -55,29 +54,17 @@ public function testGetMessage()
5554 {
5655 $ minimumAmount = 20 ;
5756 $ minimumAmountCurrency = '$20 ' ;
58- $ currencyCode = ' currency_code ' ;
57+ $ this -> scopeConfigMock -> expects ( $ this -> at ( 0 ))-> method ( ' getValue ' )-> with ( ' sales/minimum_order/description ' , \ Magento \ Store \ Model \ScopeInterface:: SCOPE_STORE )-> willReturn ( null ) ;
5958
60- $ this ->scopeConfigMock ->expects ($ this ->at (0 ))
61- ->method ('getValue ' )
62- ->with ('sales/minimum_order/description ' , \Magento \Store \Model \ScopeInterface::SCOPE_STORE )
63- ->willReturn (null );
64-
65- $ this ->scopeConfigMock ->expects ($ this ->at (1 ))
66- ->method ('getValue ' )
67- ->with ('sales/minimum_order/amount ' , \Magento \Store \Model \ScopeInterface::SCOPE_STORE )
68- ->willReturn ($ minimumAmount );
59+ $ this ->scopeConfigMock ->expects ($ this ->at (1 ))->method ('getValue ' )->with ('sales/minimum_order/amount ' , \Magento \Store \Model \ScopeInterface::SCOPE_STORE )->willReturn ($ minimumAmount );
6960
7061 $ this ->priceHelperMock ->expects ($ this ->once ())
7162 ->method ('currency ' )
7263 ->with ($ minimumAmount , true , false )
7364 ->will ($ this ->returnValue ($ minimumAmountCurrency ));
7465
75- $ this ->assertEquals (
76- __ ('Minimum order amount is %1 ' , $ minimumAmountCurrency ),
77- $ this ->model ->getMessage ()
78- );
66+ $ this ->assertEquals (__ ('Minimum order amount is %1 ' , $ minimumAmountCurrency ), $ this ->model ->getMessage ());
7967 }
80-
8168 public function testGetConfigMessage ()
8269 {
8370 $ configMessage = 'config_message ' ;
0 commit comments