Allows other folders to be queuable

This commit is contained in:
Nuno Maduro
2024-06-25 23:06:25 +01:00
parent 57ef989df8
commit 0289466ce8
2 changed files with 1 additions and 10 deletions

View File

@ -97,15 +97,6 @@ final class Laravel extends AbstractPreset
'Illuminate\Queue\SerializesModels', 'Illuminate\Queue\SerializesModels',
])->toHaveMethod('handle'); ])->toHaveMethod('handle');
$this->expectations[] = expect('App')
->not->toImplement('Illuminate\Contracts\Queue\ShouldQueue')
->not->toUseTraits([
'Illuminate\Bus\Queueable',
'Illuminate\Foundation\Bus\Dispatchable',
'Illuminate\Queue\InteractsWithQueue',
'Illuminate\Queue\SerializesModels',
])->ignoring('App\Jobs');
$this->expectations[] = expect('App\Listeners') $this->expectations[] = expect('App\Listeners')
->toHaveMethod('handle'); ->toHaveMethod('handle');

View File

@ -282,7 +282,7 @@ final class OppositeExpectation
return true; return true;
}, },
"to use traits '" . implode("', '", $traits) . "'", "not to use traits '" . implode("', '", $traits) . "'",
FileLineFinder::where(fn(string $line): bool => str_contains($line, 'class')), FileLineFinder::where(fn(string $line): bool => str_contains($line, 'class')),
); );
} }