mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Allows other folders to be queuable
This commit is contained in:
@ -97,15 +97,6 @@ final class Laravel extends AbstractPreset
|
||||
'Illuminate\Queue\SerializesModels',
|
||||
])->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')
|
||||
->toHaveMethod('handle');
|
||||
|
||||
|
||||
@ -282,7 +282,7 @@ final class OppositeExpectation
|
||||
|
||||
return true;
|
||||
},
|
||||
"to use traits '" . implode("', '", $traits) . "'",
|
||||
"not to use traits '" . implode("', '", $traits) . "'",
|
||||
FileLineFinder::where(fn(string $line): bool => str_contains($line, 'class')),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user