public function testSearchByName()
 {
     $model = new AuthItemSearch();
     $result = $model->search(['AuthItemSearch' => ['name' => 'SuperUser']]);
     $models = $result->getModels();
     expect(count($models))->equals(1);
     foreach ($models as $model) {
         expect($model->name)->equals('SuperUser');
     }
 }
 public function actionIndex()
 {
     $authItemSearch = new AuthItemSearch();
     $dataProvider = $authItemSearch->search(Yii::$app->request->get());
     return $this->render('index', ['authItemSearch' => $authItemSearch, 'dataProvider' => $dataProvider]);
 }