public function testCustomCommandSuccess() { Yii::$app->request->setParams(['import/index']); $resp = Yii::$app->run(); $this->assertEquals(0, $resp); }