make chart more better yet
This commit is contained in:
parent
6689bbca98
commit
4358a8baf4
3 changed files with 61 additions and 9 deletions
|
@ -43,7 +43,7 @@ test('it returns stock history for a drink type', function (): void {
|
|||
|
||||
// Verify the result
|
||||
expect($result)->toBeArray();
|
||||
expect($result)->toHaveCount(3);
|
||||
expect($result)->toHaveCount(4);
|
||||
|
||||
// Verify that all logs are for currentStock
|
||||
foreach ($result as $log) {
|
||||
|
@ -81,7 +81,7 @@ test('it only returns logs for the specified drink type', function (): void {
|
|||
$result = $getStockHistory($drinkType1);
|
||||
|
||||
// Verify we only get logs for the first drink type
|
||||
expect($result)->toHaveCount(1);
|
||||
expect($result)->toHaveCount(2);
|
||||
expect($result[0]->getEntityId())->toBe($drinkType1->getId());
|
||||
expect($result[0]->getNewValue())->toBe('10');
|
||||
});
|
||||
|
|
|
@ -43,7 +43,7 @@ test('it returns wanted stock history for a drink type', function (): void {
|
|||
|
||||
// Verify the result
|
||||
expect($result)->toBeArray();
|
||||
expect($result)->toHaveCount(3);
|
||||
expect($result)->toHaveCount(4);
|
||||
|
||||
// Verify that all logs are for wantedStock
|
||||
foreach ($result as $log) {
|
||||
|
@ -81,7 +81,7 @@ test('it only returns logs for the specified drink type', function (): void {
|
|||
$result = $getWantedHistory($drinkType1);
|
||||
|
||||
// Verify we only get logs for the first drink type
|
||||
expect($result)->toHaveCount(1);
|
||||
expect($result)->toHaveCount(2);
|
||||
expect($result[0]->getEntityId())->toBe($drinkType1->getId());
|
||||
expect($result[0]->getNewValue())->toBe('10');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue