From 72f6f96224838be6823d8c55b8e618b246c86623 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Fri, 20 Sep 2024 17:06:47 -0400 Subject: [PATCH] WIP --- src/Model.php | 3 ++- tests/Pest.php | 17 +---------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/src/Model.php b/src/Model.php index f6484b09..31869cf9 100644 --- a/src/Model.php +++ b/src/Model.php @@ -414,7 +414,8 @@ protected function getNewKey(): string return match ($this->keyType) { 'uuid' => $this->getNewUuid(), default => throw new RuntimeException( - "Model key type [{$this->keyType}] cannot be generated automatically. It must be provided in the model's attributes." + "Model key type [{$this->keyType}] cannot be generated automatically." + ." It must be provided in the model's attributes." ), }; } diff --git a/tests/Pest.php b/tests/Pest.php index ac7b7fb0..8364ba30 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -14,22 +14,7 @@ | */ -pest()->extend(TestCase::class)->in('Feature'); - -/* -|-------------------------------------------------------------------------- -| Expectations -|-------------------------------------------------------------------------- -| -| When you're writing tests, you often need to check that values meet certain conditions. The -| "expect()" function gives you access to a set of "expectations" methods that you can use -| to assert different things. Of course, you may extend the Expectation API at any time. -| -*/ - -expect()->extend('toBeOne', function () { - return $this->toBe(1); -}); +uses(TestCase::class)->in('Feature'); /* |--------------------------------------------------------------------------