Skip to content

Commit

Permalink
Update CartStoreTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Dec 6, 2024
1 parent 8c1f46d commit f687216
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Feature/Models/CartStoreTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use Binafy\LaravelCart\Cartable;
use Binafy\LaravelCart\Events\LaravelCartStoreItemEvent;
use Binafy\LaravelCart\Models\Cart;
use Binafy\LaravelCart\Models\CartItem;
Expand Down Expand Up @@ -223,4 +224,4 @@

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

0 comments on commit f687216

Please sign in to comment.