Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesstrange2 committed Aug 15, 2019
1 parent 44da7fc commit e1beb2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/Models/BundleModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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());
Expand Down

0 comments on commit e1beb2b

Please sign in to comment.