File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/code/Magento/Customer Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Customer \Api \CustomerMetadataInterface ;
10
10
use Magento \Customer \Api \Data \AttributeMetadataInterface ;
11
11
use Magento \Customer \Api \Data \ValidationRuleInterface ;
12
+ use Magento \Customer \Block \Widget \Dob ;
12
13
use Magento \Customer \Helper \Address ;
13
14
use Magento \Framework \App \CacheInterface ;
14
15
use Magento \Framework \Cache \FrontendInterface ;
15
16
use Magento \Framework \Data \Form \FilterFactory ;
16
17
use Magento \Framework \Escaper ;
17
18
use Magento \Framework \Exception \NoSuchEntityException ;
18
- use Magento \Customer \Block \Widget \Dob ;
19
19
use Magento \Framework \Locale \Resolver ;
20
20
use Magento \Framework \Locale \ResolverInterface ;
21
21
use Magento \Framework \Stdlib \DateTime \Timezone ;
@@ -545,9 +545,11 @@ public function testGetHtmlExtraParamsWithRequiredOption()
545
545
$ this ->escaper ->expects ($ this ->any ())
546
546
->method ('escapeHtml ' )
547
547
->with ('{"required":true,"validate-date":{"dateFormat":"M\/d\/Y"},"validate-dob":true} ' )
548
- ->will ($ this ->returnValue (
548
+ ->will (
549
+ $ this ->returnValue (
549
550
'{"required":true,"validate-date":{"dateFormat":"M\/d\/Y"},"validate-dob":true} '
550
- ));
551
+ )
552
+ );
551
553
552
554
$ this ->context ->expects ($ this ->any ())->method ('getEscaper ' )->will ($ this ->returnValue ($ this ->escaper ));
553
555
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ require([
5
5
'mage/translate' ,
6
6
] , function ( $ , moment ) {
7
7
'use strict' ;
8
+
8
9
$ . validator . addMethod (
9
10
'validate-dob' ,
10
11
function ( value ) {
You can’t perform that action at this time.
0 commit comments