Skip to content

Commit 4e6bc03

Browse files
committed
Fix failing test for x_db_type
1 parent 14b2146 commit 4e6bc03

File tree

12 files changed

+36
-36
lines changed

12 files changed

+36
-36
lines changed

tests/specs/x_db_type/rules_and_more/maria/app/models/mariafaker/AlldbdatatypeFaker.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ public function generateModel($attributes = [])
6666
$model->datetime_col = $faker->dateTimeThisYear('now', 'UTC')->format('Y-m-d H:i:s');
6767
$model->timestamp_col = $faker->dateTimeThisYear('now', 'UTC')->format('Y-m-d H:i:s');
6868
$model->year_col = $faker->year;
69-
$model->json_col = [];
70-
$model->json_col_def = [];
71-
$model->json_col_def_2 = [];
69+
$model->json_col = $faker->words();
70+
$model->json_col_def = $faker->words();
71+
$model->json_col_def_2 = $faker->words();
7272
$model->text_def = $faker->sentence;
73-
$model->json_def = [];
73+
$model->json_def = $faker->words();
7474
if (!is_callable($attributes)) {
7575
$model->setAttributes($attributes, false);
7676
} else {

tests/specs/x_db_type/rules_and_more/maria/app/models/mariafaker/EditcolumnFaker.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ public function generateModel($attributes = [])
3838
$model->dec_col = $faker->randomFloat();
3939
$model->str_col_def = substr($faker->word(3), 0, 3);
4040
$model->json_col = $faker->sentence;
41-
$model->json_col_2 = ["a" => "b"];
41+
$model->json_col_2 = $faker->words();
4242
$model->numeric_col = $faker->randomFloat();
43-
$model->json_col_def_n = [];
44-
$model->json_col_def_n_2 = [];
43+
$model->json_col_def_n = $faker->words();
44+
$model->json_col_def_n_2 = $faker->words();
4545
if (!is_callable($attributes)) {
4646
$model->setAttributes($attributes, false);
4747
} else {

tests/specs/x_db_type/rules_and_more/maria/app/models/mariafaker/NewcolumnFaker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public function generateModel($attributes = [])
3434
$model->name = substr($faker->text(255), 0, 255);
3535
$model->last_name = $faker->sentence;
3636
$model->dec_col = $faker->randomFloat();
37-
$model->json_col = [];
37+
$model->json_col = $faker->words();
3838
$model->varchar_col = substr($faker->text(5), 0, 5);
3939
$model->numeric_col = $faker->randomFloat();
40-
$model->json_col_def_n = [];
40+
$model->json_col_def_n = $faker->words();
4141
if (!is_callable($attributes)) {
4242
$model->setAttributes($attributes, false);
4343
} else {

tests/specs/x_db_type/rules_and_more/maria/app/models/mariafaker/PristineFaker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function generateModel($attributes = [])
3737
$model->col_5 = $faker->randomFloat();
3838
$model->col_6 = $faker->randomFloat();
3939
$model->col_7 = $faker->randomFloat();
40-
$model->col_8 = [];
40+
$model->col_8 = $faker->words();
4141
$model->col_9 = substr($faker->text(9), 0, 9);
4242
$model->col_10 = substr($faker->text(10), 0, 10);
4343
$model->col_11 = $faker->sentence;

tests/specs/x_db_type/rules_and_more/mysql/app/models/AlldbdatatypeFaker.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ public function generateModel($attributes = [])
6565
$model->datetime_col = $faker->dateTimeThisYear('now', 'UTC')->format('Y-m-d H:i:s');
6666
$model->timestamp_col = $faker->dateTimeThisYear('now', 'UTC')->format('Y-m-d H:i:s');
6767
$model->year_col = $faker->year;
68-
$model->json_col = [];
69-
$model->json_col_def = [];
70-
$model->json_col_def_2 = [];
68+
$model->json_col = $faker->words();
69+
$model->json_col_def = $faker->words();
70+
$model->json_col_def_2 = $faker->words();
7171
$model->text_def = $faker->sentence;
72-
$model->json_def = [];
72+
$model->json_def = $faker->words();
7373
if (!is_callable($attributes)) {
7474
$model->setAttributes($attributes, false);
7575
} else {

tests/specs/x_db_type/rules_and_more/mysql/app/models/EditcolumnFaker.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public function generateModel($attributes = [])
3737
$model->dec_col = $faker->randomFloat();
3838
$model->str_col_def = substr($faker->word(3), 0, 3);
3939
$model->json_col = $faker->sentence;
40-
$model->json_col_2 = ["a" => "b"];
40+
$model->json_col_2 = $faker->words();
4141
$model->numeric_col = $faker->randomFloat();
42-
$model->json_col_def_n = [];
43-
$model->json_col_def_n_2 = [];
42+
$model->json_col_def_n = $faker->words();
43+
$model->json_col_def_n_2 = $faker->words();
4444
if (!is_callable($attributes)) {
4545
$model->setAttributes($attributes, false);
4646
} else {

tests/specs/x_db_type/rules_and_more/mysql/app/models/NewcolumnFaker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public function generateModel($attributes = [])
3333
$model->name = substr($faker->text(255), 0, 255);
3434
$model->last_name = $faker->sentence;
3535
$model->dec_col = $faker->randomFloat();
36-
$model->json_col = [];
36+
$model->json_col = $faker->words();
3737
$model->varchar_col = substr($faker->text(5), 0, 5);
3838
$model->numeric_col = $faker->randomFloat();
39-
$model->json_col_def_n = [];
39+
$model->json_col_def_n = $faker->words();
4040
if (!is_callable($attributes)) {
4141
$model->setAttributes($attributes, false);
4242
} else {

tests/specs/x_db_type/rules_and_more/mysql/app/models/PristineFaker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function generateModel($attributes = [])
3636
$model->col_5 = $faker->randomFloat();
3737
$model->col_6 = $faker->randomFloat();
3838
$model->col_7 = $faker->randomFloat();
39-
$model->col_8 = [];
39+
$model->col_8 = $faker->words();
4040
$model->col_9 = substr($faker->text(9), 0, 9);
4141
$model->col_10 = substr($faker->text(10), 0, 10);
4242
$model->col_11 = $faker->sentence;

tests/specs/x_db_type/rules_and_more/pgsql/app/models/pgsqlfaker/AlldbdatatypeFaker.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function generateModel($attributes = [])
3434
$model->string_col = $faker->sentence;
3535
$model->varchar_col = $faker->sentence;
3636
$model->text_col = $faker->sentence;
37-
$model->text_col_array = [];
37+
$model->text_col_array = $faker->words();
3838
$model->varchar_4_col = substr($faker->word(4), 0, 4);
3939
$model->varchar_5_col = substr($faker->text(5), 0, 5);
4040
$model->char_4_col = substr($faker->word(4), 0, 4);
@@ -90,13 +90,13 @@ public function generateModel($attributes = [])
9090
$model->character_n = substr($faker->text(12), 0, 12);
9191
$model->character_varying = $faker->sentence;
9292
$model->character_varying_n = substr($faker->text(12), 0, 12);
93-
$model->json_col = [];
94-
$model->jsonb_col = [];
95-
$model->json_col_def = [];
96-
$model->json_col_def_2 = [];
93+
$model->json_col = $faker->words();
94+
$model->jsonb_col = $faker->words();
95+
$model->json_col_def = $faker->words();
96+
$model->json_col_def_2 = $faker->words();
9797
$model->text_def = $faker->sentence;
98-
$model->json_def = [];
99-
$model->jsonb_def = [];
98+
$model->json_def = $faker->words();
99+
$model->jsonb_def = $faker->words();
100100
$model->cidr_col = $faker->sentence;
101101
$model->circle_col = $faker->sentence;
102102
$model->date_col_z = $faker->dateTimeThisCentury->format('Y-m-d');

tests/specs/x_db_type/rules_and_more/pgsql/app/models/pgsqlfaker/EditcolumnFaker.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public function generateModel($attributes = [])
3838
$model->dec_col = $faker->randomFloat();
3939
$model->str_col_def = $faker->sentence;
4040
$model->json_col = $faker->sentence;
41-
$model->json_col_2 = ["a" => "b"];
41+
$model->json_col_2 = $faker->words();
4242
$model->numeric_col = $faker->randomFloat();
43-
$model->json_col_def_n = [];
44-
$model->json_col_def_n_2 = [];
45-
$model->text_col_array = [];
43+
$model->json_col_def_n = $faker->words();
44+
$model->json_col_def_n_2 = $faker->words();
45+
$model->text_col_array = $faker->words();
4646
if (!is_callable($attributes)) {
4747
$model->setAttributes($attributes, false);
4848
} else {

0 commit comments

Comments
 (0)