From 92770711866e16cc4b71db587e152e2345e89aeb Mon Sep 17 00:00:00 2001 From: freek Date: Thu, 13 Jan 2022 12:33:08 +0100 Subject: [PATCH] wip --- .github/workflows/run-tests.yml | 2 +- tests/HasTranslatableSlugTest.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f52c5a3..9102101 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -11,7 +11,7 @@ jobs: os: [ubuntu-latest] php: [8.1 8.0] laravel: [9.*, 8.*] - stability: [prefer-lowest, prefer-stable] + stability: [prefer-stable] include: - laravel: 9.* testbench: 7.* diff --git a/tests/HasTranslatableSlugTest.php b/tests/HasTranslatableSlugTest.php index 37fcdca..5f1b5da 100644 --- a/tests/HasTranslatableSlugTest.php +++ b/tests/HasTranslatableSlugTest.php @@ -2,6 +2,7 @@ namespace Spatie\Sluggable\Tests; +use Illuminate\Routing\Middleware\SubstituteBindings; use Illuminate\Support\Facades\Route; use Spatie\Sluggable\SlugOptions; @@ -368,7 +369,7 @@ function (TranslatableModel $test) use ($model) { $this->assertNotNull($test); $this->assertEquals($model->id, $test->id); } - )->middleware('bindings'); + )->middleware(SubstituteBindings::class); $response = $this->get("/translatable-model/updated-value-en"); @@ -396,7 +397,7 @@ function (TestModel $testModel, TranslatableModel $translatableModel) use ($pare $this->assertEquals($parent->id, $testModel->id); $this->assertEquals($model->id, $translatableModel->id); } - )->middleware('bindings'); + )->middleware(SubstituteBindings::class); $response = $this->get("/test-model/parent/translatable-model/updated-value-en");