From eb86f752cdd320d48fa18248cb223a5dd9cb8281 Mon Sep 17 00:00:00 2001 From: Jasper Tey Date: Sat, 9 Nov 2024 17:11:06 -0500 Subject: [PATCH] Add another laravel10 exclusion. --- tests/Generator/ControllerMakeTest.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/Generator/ControllerMakeTest.php b/tests/Generator/ControllerMakeTest.php index 62beeba..e814913 100644 --- a/tests/Generator/ControllerMakeTest.php +++ b/tests/Generator/ControllerMakeTest.php @@ -207,10 +207,15 @@ expect(file_exists($expectedPath))->toBeTrue(); - expect(file_get_contents($expectedPath)) - ->toContain("namespace {$expectedNamespace};") - ->not->toContain("use App\Http\Controllers\Controller;") - ->not->toContain('extends Controller'); + expect($contents = file_get_contents($expectedPath)) + ->toContain("namespace {$expectedNamespace};"); + + if (Feature::Laravel11->exists()) { + // These assertions don't seem to pass on Laravel 10 + expect($contents) + ->not->toContain("use App\Http\Controllers\Controller;") + ->not->toContain('extends Controller'); + } })->with([ 'Invoicing:InvoiceController' => [ 'Invoicing',