From e1beb2ba9632f5adb6def8b52f87361d4d8aefdf Mon Sep 17 00:00:00 2001 From: Charles Strange Date: Thu, 15 Aug 2019 14:36:41 +0100 Subject: [PATCH] update tests --- tests/Unit/Models/BundleModelTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Unit/Models/BundleModelTest.php b/tests/Unit/Models/BundleModelTest.php index e3ebc5313..fd9d353ac 100644 --- a/tests/Unit/Models/BundleModelTest.php +++ b/tests/Unit/Models/BundleModelTest.php @@ -155,8 +155,8 @@ public function testItCannotAlterTheBundleToIncludeADisbursedVoucher() $errors = $disbursedBundle->alterVouchers($vs, [], null); // See errors - $this->assertArrayHasKey("codes", $errors); - $this->assertArraySubset($vs->pluck("code")->toArray(), $errors["codes"]); + $this->assertArrayHasKey("disbursed", $errors); + $this->assertArraySubset($vs->pluck("code")->toArray(), $errors["disbursed"]); // See it has the vouchers still $this->assertEquals(3, $disbursedBundle->vouchers()->count()); @@ -165,8 +165,8 @@ public function testItCannotAlterTheBundleToIncludeADisbursedVoucher() $errors = $this->bundle->alterVouchers($vs, [], $this->bundle); // See errors. - $this->assertArrayHasKey("codes", $errors); - $this->assertArraySubset($vs->pluck("code")->toArray(), $errors["codes"]); + $this->assertArrayHasKey("disbursed", $errors); + $this->assertArraySubset($vs->pluck("code")->toArray(), $errors["disbursed"]); // See it has the vouchers still. $this->assertEquals(3, $disbursedBundle->vouchers()->count());