Mixer now returns a MixedRecipe instead of array
This commit is contained in:
1 parent
04f357fc0a
commit
efdc860df2
5 files changed
+59
-36
No files matched your search
@@ -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