Mixer now returns a MixedRecipe instead of array
This commit is contained in:
@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user