File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 10
10
use DMS \PHPUnitExtensions \ArraySubset \ArraySubsetAsserts ;
11
11
use Yii ;
12
12
use yii \base \DynamicModel ;
13
+ use yii \base \InvalidConfigException ;
13
14
use yii \web \AssetManager ;
14
15
use yii \web \View ;
15
16
use yii \widgets \ActiveField ;
@@ -691,6 +692,16 @@ public function testInputOptionsTransferToWidget()
691
692
'options ' => ['placeholder ' => 'pholder_both_direct ' ]
692
693
]);
693
694
$ this ->assertStringContainsString ('placeholder="pholder_both_direct" ' , (string ) $ widget );
695
+
696
+ try {
697
+ $ widget = $ this ->activeField ->widget (TestMaskedInput::className (), [
698
+ 'clientOptions ' => [
699
+ 'regex ' => '^.*$ ' ,
700
+ ],
701
+ ]);
702
+ } catch (InvalidConfigException $ exception ) {
703
+ $ this ->fail ($ exception ->getMessage ());
704
+ }
694
705
}
695
706
696
707
/**
You can’t perform that action at this time.
0 commit comments