Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Sep 20, 2024
1 parent 1d9cfe2 commit 72f6f96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
3 changes: 2 additions & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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."
),
};
}
Expand Down
17 changes: 1 addition & 16 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 72f6f96

Please sign in to comment.