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 78b5508
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 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 All @@ -79,7 +82,7 @@ public function testAddUpdate(): void
$color->value = 'Blue';
$this->assertTrue($color->store());

$this->assertCoun(2, $color->getList());
$this->assertCount(2, $color->getList());
$this->assertSame('2 colors', $color->displayCount());
}
}

0 comments on commit 78b5508

Please sign in to comment.