From 95924a3ccd0773dd5f83412f37f95aa2db03218d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 1 Apr 2019 13:21:04 +0100 Subject: [PATCH] Update expected Exception --- tests/Unit/Service/AddressesTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Service/AddressesTest.php b/tests/Unit/Service/AddressesTest.php index 014231c..c1fbdef 100644 --- a/tests/Unit/Service/AddressesTest.php +++ b/tests/Unit/Service/AddressesTest.php @@ -2,6 +2,7 @@ namespace Opdavies\Tests\GmailFilterBuilder\Service; +use Opdavies\GmailFilterBuilder\Exception\PartialNotFoundException; use Opdavies\GmailFilterBuilder\Service\Addresses; use PHPUnit\Framework\TestCase; use Tightenco\Collect\Support\Collection; @@ -26,7 +27,7 @@ class AddressesTest extends TestCase /** @test */ public function throw_an_exception_if_an_address_file_does_not_exist() { - $this->expectException(\RuntimeException::class); + $this->expectException(PartialNotFoundException::class); Addresses::load('does-not-exist'); }