protected function setUp() { parent::setUp(); $this->mockApplication(['components' => ['db' => ['class' => 'yii\\db\\Connection', 'dsn' => 'sqlite::memory:']]]); $module = $this->getMock('yii\\base\\Module', ['fake'], ['console']); $this->controller = new SchemaDumpControllerMock('schemadump', $module); }