@@ -117,40 +117,6 @@ class CommandTestUser extends Model
117117 ->assertExitCode (0 );
118118});
119119
120- // TODO: Fix test
121- // it('displays available options when no name provided', function () {
122- // config([
123- // 'data-extractor.options' => [
124- // [
125- // 'name' => 'Option1',
126- // 'description' => 'First option',
127- // 'format' => 'sql',
128- // 'source' => 'test',
129- // ],
130- // [
131- // 'name' => 'Option2',
132- // 'description' => 'Second option',
133- // 'format' => 'csv',
134- // 'source' => 'test',
135- // ],
136- // ],
137- // 'data-extractor.source' => [
138- // 'test' => [
139- // 'model' => CommandTestUser::class,
140- // 'connection' => 'testing',
141- // 'relationships' => [],
142- // ],
143- // ],
144- // ]);
145-
146- // // Mock the choice method to return the first option
147- // $this->artisan('data:extract', ['--queryId' => 1])
148- // ->expectsTable(['Name', 'Description'], [
149- // ['Option1', 'First option'],
150- // ['Option2', 'Second option'],
151- // ]);
152- // });
153-
154120it ('prompts for model ID when not provided ' , function () {
155121 config ([
156122 'data-extractor.options ' => [
@@ -207,34 +173,6 @@ class CommandTestUser extends Model
207173 ->assertExitCode (1 );
208174});
209175
210- // TODO: Fix test
211- // it('fails with invalid option name', function () {
212- // config([
213- // 'data-extractor.options' => [
214- // [
215- // 'name' => 'ValidOption',
216- // 'description' => 'Valid option',
217- // 'format' => 'sql',
218- // 'source' => 'test',
219- // ],
220- // ],
221- // 'data-extractor.source' => [
222- // 'test' => [
223- // 'model' => CommandTestUser::class,
224- // 'connection' => 'testing',
225- // 'relationships' => [],
226- // ],
227- // ],
228- // ]);
229-
230- // $this->artisan('data:extract', [
231- // '--name' => 'InvalidOption',
232- // '--queryId' => 1,
233- // ])
234- // ->expectsOutput('Invalid option value: InvalidOption')
235- // ->assertExitCode(1);
236- // });
237-
238176it ('can handle multiple IDs ' , function () {
239177 config ([
240178 'data-extractor.options ' => [
0 commit comments