tests: gemeinsamer Testhelfer, DB_URL-Guard vor RefreshDatabase, Larastan voller Scope ohne Meldung (Umsetzungsaudit 29.09.: Q-01, Q-02; 02.10.: O02)
- makeCustomerForShowPhase8a() nach tests/Pest.php — die Suite läuft damit auch parallel (--parallel) und dateiweise grün - phpunit.xml leert DB_URL, der Guard in TestCase::setUpTraits() bricht bei gesetzter url ab, bevor RefreshDatabase eine Verbindung öffnet - HasUniqueSlug ohne widersprüchliche @var-Annotation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
80536ab998
commit
3dbc3fa673
6 changed files with 74 additions and 34 deletions
|
|
@ -86,10 +86,9 @@ trait HasUniqueSlug
|
|||
*/
|
||||
protected function slugExists(string $slug, array $scope): bool
|
||||
{
|
||||
/** @var Model $self */
|
||||
$self = $this;
|
||||
|
||||
$query = $self::query()
|
||||
$query = static::query()
|
||||
->withoutGlobalScopes()
|
||||
->where($this->slugColumn(), $slug);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue