Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Feb 10, 2024
1 parent 806e807 commit 6532db6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/GaletteAuto/tests/units/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public function testAddUpdate(): void
$this->assertTrue($color->store(true));

$this->assertCount(1, $color->getList());
$this->assertSame(1, $color->getList());
$listed_color = $color->getList()[0];
$this->assertInstanceOf(\ArrayObject::class, $listed_color);
$this->assertGreaterThan(0, $listed_color->id_color);
$this->assertSame('Red', $listed_color->color);
$this->assertSame('1 color', $color->displayCount());

//add another one
Expand Down

0 comments on commit 6532db6

Please sign in to comment.