mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Use ::class instead of ::className() in tests. (#20612)
This commit is contained in:
@ -128,7 +128,7 @@ HTML,
|
||||
$model = new DynamicModel(['name']);
|
||||
$model->addRule(['name'], 'required');
|
||||
|
||||
$view = $this->getMockBuilder(View::className())->getMock();
|
||||
$view = $this->getMockBuilder(View::class)->getMock();
|
||||
$view->method('registerJs')->with($this->matches("jQuery('#w0').yiiActiveForm([], {\"validateOnSubmit\":false});"));
|
||||
$view->method('registerAssetBundle')->willReturn(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user