Skip to content

Commit f687216

Browse files
committed
Update CartStoreTest.php
1 parent 8c1f46d commit f687216

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Feature/Models/CartStoreTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
use Binafy\LaravelCart\Cartable;
34
use Binafy\LaravelCart\Events\LaravelCartStoreItemEvent;
45
use Binafy\LaravelCart\Models\Cart;
56
use Binafy\LaravelCart\Models\CartItem;
@@ -223,4 +224,4 @@
223224

224225
// Event Assertion
225226
Event::assertNotDispatched(LaravelCartStoreItemEvent::class);
226-
})->expectExceptionMessage('The item must be an instance of Cartable');
227+
})->expectExceptionMessage(sprintf('The item must be an instance of %s', Cartable::class));

0 commit comments

Comments
 (0)