Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jan 13, 2022
1 parent 22d2884 commit 9277071
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down
5 changes: 3 additions & 2 deletions tests/HasTranslatableSlugTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Spatie\Sluggable\Tests;

use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Support\Facades\Route;
use Spatie\Sluggable\SlugOptions;

Expand Down Expand Up @@ -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");

Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit 9277071

Please sign in to comment.