From 3ad16a295abe19e7d6cd09595e76cf403394f097 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Thu, 5 Mar 2026 21:33:25 +0100 Subject: [PATCH] Remove closure in attribute test --- .../Models/ClosureInAttribute.php | 14 ---------- .../PhpAttributesClosureInAttribute/Test.php | 27 ------------------- .../__snapshots__/Test__test__1.php | 22 --------------- 3 files changed, 63 deletions(-) delete mode 100644 tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/Models/ClosureInAttribute.php delete mode 100644 tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/Test.php delete mode 100644 tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/__snapshots__/Test__test__1.php diff --git a/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/Models/ClosureInAttribute.php b/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/Models/ClosureInAttribute.php deleted file mode 100644 index a1a59b8..0000000 --- a/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/Models/ClosureInAttribute.php +++ /dev/null @@ -1,14 +0,0 @@ - true)] -class ClosureInAttribute extends Model -{ - protected $table = 'simples'; -} diff --git a/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/Test.php b/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/Test.php deleted file mode 100644 index 1208731..0000000 --- a/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/Test.php +++ /dev/null @@ -1,27 +0,0 @@ -app->make(ModelsCommand::class); - - $tester = $this->runCommand($command, [ - '--write' => true, - ]); - - $this->assertSame(0, $tester->getStatusCode()); - $this->assertStringContainsString('Written new phpDocBlock to', $tester->getDisplay()); - $this->assertMatchesMockedSnapshot(); - } -} diff --git a/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/__snapshots__/Test__test__1.php b/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/__snapshots__/Test__test__1.php deleted file mode 100644 index 77e0f03..0000000 --- a/tests/Console/ModelsCommand/PhpAttributesClosureInAttribute/__snapshots__/Test__test__1.php +++ /dev/null @@ -1,22 +0,0 @@ -|ClosureInAttribute newModelQuery() - * @method static \Illuminate\Database\Eloquent\Builder|ClosureInAttribute newQuery() - * @method static \Illuminate\Database\Eloquent\Builder|ClosureInAttribute query() - * @method static \Illuminate\Database\Eloquent\Builder|ClosureInAttribute whereId($value) - * @mixin \Eloquent - */ -#[SomeClosureAttr(fn() => true)] -class ClosureInAttribute extends Model -{ - protected $table = 'simples'; -}