Skip to content

Commit

Permalink
Change Kohana_Exception hints
Browse files Browse the repository at this point in the history
  • Loading branch information
george-clippings committed Dec 9, 2020
1 parent 70d430b commit f7a5658
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/tests/Model/PromotionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,25 @@ public function test_currency()

/**
* @covers Model_Promotion::price_for_purchase_item
* @expectedException Kohana_Exception
* @expectedExceptionMessage Not a valid promotion
*/
public function test_price_for_purchase_item()
{
$this->expectException(Kohana_Exception::class);
$this->expectExceptionMessage('Not a valid promotion');

$promotion = Jam::build('promotion');

$promotion->price_for_purchase_item(Jam::build('purchase_item_promotion'));
}

/**
* @covers Model_Promotion::price_for_purchase_item
* @expectedException Kohana_Exception
* @expectedExceptionMessage Not a valid promotion
*/
public function test_applies_to()
{
$this->expectException(Kohana_Exception::class);
$this->expectExceptionMessage('Not a valid promotion');

$promotion = Jam::build('promotion');

$promotion->applies_to(Jam::build('brand_purchase'));
Expand Down

0 comments on commit f7a5658

Please sign in to comment.