Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
PerryvanderMeer committed Aug 29, 2023
1 parent 8d9b230 commit 41363cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/Datasets/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class Price extends Model
#[PrimaryKey]
public int $id;

#[Rules(['required', 'decimal:2'])]
public float $price;
#[Rules(['required', 'integer'])]
public int $price;

protected $fillable = [
'price',
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/RelationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@
]);

$price = $book->prices()->create([
'price' => fake()->randomFloat(2),
'price' => fake()->numberBetween(1, 500),
]);

expect($book->prices)->toHaveCount(1)
Expand Down

0 comments on commit 41363cb

Please sign in to comment.