public function testOverrideConfig()
 {
     $overrided = 'overrided';
     $controller = Yii::$app->createController('');
     $action = Yii::createObject(['class' => \peresmishnyk\yii2components\action\ViewAction::className(), 'view' => $overrided, 'modelScenario' => $overrided], ['view', $controller]);
     $this->assertAttributeEquals($overrided, 'view', $action, "Property 'view' is not overrided");
     $this->assertAttributeEquals($overrided, 'modelScenario', $action, "Property 'modelScenario' is not overrided");
 }
 protected function getDefaultActions()
 {
     return ['update' => ['class' => UpdateAction::className()], 'create' => ['class' => CreateAction::className()], 'view' => ['class' => ViewAction::className()], 'index' => ['class' => IndexAction::className()]];
 }
 public function actions()
 {
     return ['view' => ViewAction::className()];
 }