|
30 | 30 |
|
31 | 31 | $this->expectException(\Symfony\Component\Console\Exception\InvalidArgumentException::class);
|
32 | 32 |
|
33 |
| - $this->artisan("schema:generate-rules", [ |
| 33 | + $this->artisan('schema:generate-rules', [ |
34 | 34 | 'foo' => $this->tableName,
|
35 | 35 | ]);
|
36 | 36 | });
|
|
42 | 42 |
|
43 | 43 | $this->expectException(\Symfony\Component\Console\Exception\InvalidOptionException::class);
|
44 | 44 |
|
45 |
| - $this->artisan("schema:generate-rules", [ |
| 45 | + $this->artisan('schema:generate-rules', [ |
46 | 46 | 'table' => $this->tableName,
|
47 | 47 | '--foo' => 'test_bool',
|
48 | 48 | ]);
|
|
55 | 55 |
|
56 | 56 | $this->expectException(TableDoesNotExistException::class);
|
57 | 57 |
|
58 |
| - $this->artisan("schema:generate-rules", [ |
| 58 | + $this->artisan('schema:generate-rules', [ |
59 | 59 | 'table' => $this->tableName.'1',
|
60 | 60 | ]);
|
61 | 61 | });
|
|
67 | 67 |
|
68 | 68 | $this->expectException(MultipleTablesSuppliedException::class);
|
69 | 69 |
|
70 |
| - $this->artisan("schema:generate-rules", [ |
| 70 | + $this->artisan('schema:generate-rules', [ |
71 | 71 | 'table' => $this->tableName.',tests2',
|
72 | 72 | ]);
|
73 | 73 | });
|
|
79 | 79 |
|
80 | 80 | $this->expectException(ColumnDoesNotExistException::class);
|
81 | 81 |
|
82 |
| - $this->artisan("schema:generate-rules", [ |
| 82 | + $this->artisan('schema:generate-rules', [ |
83 | 83 | 'table' => $this->tableName,
|
84 | 84 | '--columns' => 'foo',
|
85 | 85 | ]);
|
|
106 | 106 | $stringNullableColumnName => ['nullable', 'string', 'min:1', 'max:255'],
|
107 | 107 | ]);
|
108 | 108 |
|
109 |
| - $this->artisan("schema:generate-rules", [ |
| 109 | + $this->artisan('schema:generate-rules', [ |
110 | 110 | 'table' => $this->tableName,
|
111 | 111 | ])->assertSuccessful();
|
112 | 112 | });
|
|
132 | 132 | $boolNullableColumnName => ['nullable', 'boolean'],
|
133 | 133 | ]);
|
134 | 134 |
|
135 |
| - $this->artisan("schema:generate-rules", [ |
| 135 | + $this->artisan('schema:generate-rules', [ |
136 | 136 | 'table' => $this->tableName,
|
137 | 137 | ])->assertSuccessful();
|
138 | 138 | });
|
|
170 | 170 | $textColumnName => ['required', 'string', 'min:1'],
|
171 | 171 | ]);
|
172 | 172 |
|
173 |
| - $this->artisan("schema:generate-rules", [ |
| 173 | + $this->artisan('schema:generate-rules', [ |
174 | 174 | 'table' => $this->tableName,
|
175 | 175 | ])->assertSuccessful();
|
176 | 176 | });
|
|
234 | 234 | $bigintNullableColumnName => ['nullable', 'integer', 'min:'.$integerTypes['bigint']['signed'][0], 'max:'.$integerTypes['bigint']['signed'][1]],
|
235 | 235 | ]);
|
236 | 236 |
|
237 |
| - $this->artisan("schema:generate-rules", [ |
| 237 | + $this->artisan('schema:generate-rules', [ |
238 | 238 | 'table' => $this->tableName,
|
239 | 239 | ])->assertSuccessful();
|
240 | 240 | });
|
|
282 | 282 | $decimalNullableColumnName => ['nullable', 'numeric'],
|
283 | 283 | ]);
|
284 | 284 |
|
285 |
| - $this->artisan("schema:generate-rules", [ |
| 285 | + $this->artisan('schema:generate-rules', [ |
286 | 286 | 'table' => $this->tableName,
|
287 | 287 | ])->assertSuccessful();
|
288 | 288 | });
|
|
310 | 310 | $setColumnName => ['required', 'string', 'in:'.implode(',', $allowed)],
|
311 | 311 | ]);
|
312 | 312 |
|
313 |
| - $this->artisan("schema:generate-rules", [ |
| 313 | + $this->artisan('schema:generate-rules', [ |
314 | 314 | 'table' => $this->tableName,
|
315 | 315 | ])->assertSuccessful();
|
316 | 316 | });
|
|
344 | 344 | $timestampColumnName => ['required', 'date', 'after_or_equal:1970-01-01 00:00:01', 'before_or_equal:2038-01-19 03:14:07'],
|
345 | 345 | ]);
|
346 | 346 |
|
347 |
| - $this->artisan("schema:generate-rules", [ |
| 347 | + $this->artisan('schema:generate-rules', [ |
348 | 348 | 'table' => $this->tableName,
|
349 | 349 | ])->assertSuccessful();
|
350 | 350 | });
|
|
364 | 364 | $jsonColumnName => ['required', 'json'],
|
365 | 365 | ]);
|
366 | 366 |
|
367 |
| - $this->artisan("schema:generate-rules", [ |
| 367 | + $this->artisan('schema:generate-rules', [ |
368 | 368 | 'table' => $this->tableName,
|
369 | 369 | ])->assertSuccessful();
|
370 | 370 | });
|
|
396 | 396 | $foreignKeyColumnName => ['required', 'exists:'.implode(',', $constrained)],
|
397 | 397 | ]);
|
398 | 398 |
|
399 |
| - $this->artisan("schema:generate-rules", [ |
| 399 | + $this->artisan('schema:generate-rules', [ |
400 | 400 | 'table' => $foreignTable,
|
401 | 401 | ])->assertSuccessful();
|
402 | 402 |
|
|
426 | 426 | $stringColumnName => ['required', 'string', 'min:1', 'max:255'],
|
427 | 427 | ]);
|
428 | 428 |
|
429 |
| - $this->artisan("schema:generate-rules", [ |
| 429 | + $this->artisan('schema:generate-rules', [ |
430 | 430 | 'table' => $this->tableName,
|
431 | 431 | ])->assertSuccessful();
|
432 | 432 |
|
|
0 commit comments