File tree Expand file tree Collapse file tree 2 files changed +5
-12
lines changed
tests/lib/Integration/Eloquent Expand file tree Collapse file tree 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 3838 },
3939 "require-dev" : {
4040 "ext-sqlite3" : " *" ,
41- "cloudcreativity/json-api-testing" : " ^2.0" ,
42- "composer/semver" : " ^1.5" ,
41+ "cloudcreativity/json-api-testing" : " ^2.1" ,
4342 "guzzlehttp/guzzle" : " ^6.3" ,
4443 "mockery/mockery" : " ^1.1" ,
4544 "orchestra/testbench" : " ^4.0" ,
7877 }
7978 }
8079 },
81- "minimum-stability" : " stable " ,
80+ "minimum-stability" : " dev " ,
8281 "prefer-stable" : true ,
8382 "config" : {
8483 "sort-packages" : true
Original file line number Diff line number Diff line change 1919
2020use Carbon \Carbon ;
2121use CloudCreativity \LaravelJsonApi \Tests \Integration \TestCase ;
22- use Composer \Semver \Semver ;
2322use DummyApp \Comment ;
2423use DummyApp \Post ;
2524use DummyApp \Tag ;
@@ -712,14 +711,9 @@ public function testDelete()
712711 return $ post ->is ($ actual );
713712 });
714713
715- /**
716- * Force deleted event was added in Laravel 5.6.
717- */
718- if (Semver::satisfies ($ this ->app ->version (), '>=5.6 ' )) {
719- Event::assertDispatched ("eloquent.forceDeleted: " . Post::class, function ($ name , $ actual ) use ($ post ) {
720- return $ post ->is ($ actual );
721- });
722- }
714+ Event::assertDispatched ("eloquent.forceDeleted: " . Post::class, function ($ name , $ actual ) use ($ post ) {
715+ return $ post ->is ($ actual );
716+ });
723717 }
724718
725719 /**
You can’t perform that action at this time.
0 commit comments