Skip to content

Commit

Permalink
[9.x] ecs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Mar 16, 2023
1 parent 23f8248 commit 5bdc0de
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 21 deletions.
6 changes: 4 additions & 2 deletions tests/Infra/Factories/BuyerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ class BuyerFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name,
'email' => fake()->unique()
'name' => fake()
->name,
'email' => fake()
->unique()
->safeEmail,
];
}
Expand Down
3 changes: 2 additions & 1 deletion tests/Infra/Factories/ItemDiscountFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ItemDiscountFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->domainName,
'name' => fake()
->domainName,
'price' => random_int(200, 700),
'quantity' => random_int(10, 100),
];
Expand Down
3 changes: 2 additions & 1 deletion tests/Infra/Factories/ItemDiscountTaxFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ItemDiscountTaxFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->domainName,
'name' => fake()
->domainName,
'price' => 250,
'quantity' => 90,
];
Expand Down
3 changes: 2 additions & 1 deletion tests/Infra/Factories/ItemFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ItemFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->domainName,
'name' => fake()
->domainName,
'price' => random_int(1, 100),
'quantity' => random_int(0, 10),
];
Expand Down
3 changes: 2 additions & 1 deletion tests/Infra/Factories/ItemMaxTaxFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ItemMaxTaxFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->domainName,
'name' => fake()
->domainName,
'price' => random_int(1, 100),
'quantity' => random_int(0, 10),
];
Expand Down
3 changes: 2 additions & 1 deletion tests/Infra/Factories/ItemMinTaxFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ItemMinTaxFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->domainName,
'name' => fake()
->domainName,
'price' => random_int(1, 100),
'quantity' => random_int(0, 10),
];
Expand Down
3 changes: 2 additions & 1 deletion tests/Infra/Factories/ItemTaxFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ItemTaxFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->domainName,
'name' => fake()
->domainName,
'price' => random_int(1, 100),
'quantity' => random_int(0, 10),
];
Expand Down
3 changes: 2 additions & 1 deletion tests/Infra/Factories/ItemWalletFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ItemWalletFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->domainName,
'name' => fake()
->domainName,
'price' => random_int(1, 100),
'quantity' => random_int(0, 10),
];
Expand Down
6 changes: 4 additions & 2 deletions tests/Infra/Factories/ManagerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ public function definition(): array
{
return [
'id' => Uuid::uuid4()->toString(),
'name' => fake()->name,
'email' => fake()->unique()
'name' => fake()
->name,
'email' => fake()
->unique()
->safeEmail,
];
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Infra/Factories/UserCashierFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class UserCashierFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name,
'email' => fake()->unique()
'name' => fake()
->name,
'email' => fake()
->unique()
->safeEmail,
];
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Infra/Factories/UserConfirmFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class UserConfirmFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name,
'email' => fake()->unique()
'name' => fake()
->name,
'email' => fake()
->unique()
->safeEmail,
];
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Infra/Factories/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class UserFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name,
'email' => fake()->unique()
'name' => fake()
->name,
'email' => fake()
->unique()
->safeEmail,
];
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Infra/Factories/UserFloatFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class UserFloatFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name,
'email' => fake()->unique()
'name' => fake()
->name,
'email' => fake()
->unique()
->safeEmail,
];
}
Expand Down
6 changes: 4 additions & 2 deletions tests/Infra/Factories/UserMultiFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ class UserMultiFactory extends Factory
public function definition(): array
{
return [
'name' => fake()->name,
'email' => fake()->unique()
'name' => fake()
->name,
'email' => fake()
->unique()
->safeEmail,
];
}
Expand Down

0 comments on commit 5bdc0de

Please sign in to comment.