Mixer now returns a MixedRecipe instead of array

This commit is contained in:
2019-07-10 23:48:03 +02:00
parent 04f357fc0a
commit efdc860df2
5 changed files with 59 additions and 36 deletions

View File

@ -29,7 +29,7 @@ class MixerTest extends \PhpUnit\Framework\TestCase
$mixer = new Mixer();
$base = new Base($base);
$mixed = $mixer->mixRecipe($recipe, $amount, $base, 0);
$mixed = $mixer->mixRecipe($recipe, $amount, $base, 0)->getMeasuredIngredients();
$this->assertCount(count($assertBases), $mixed);
$mixedAmount = 0;
@ -63,7 +63,7 @@ class MixerTest extends \PhpUnit\Framework\TestCase
{
$mixer = new Mixer();
$base = new Base($base);
$mixed = $mixer->mixRecipe($recipe, $amount, $base, 0);
$mixed = $mixer->mixRecipe($recipe, $amount, $base, 0)->getMeasuredIngredients();
$expectedCount = count($base->getComponents()) + count($recipe->getIngredients());