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',