mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +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',
|
'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');
|
||||||
|
|
||||||
|
|||||||
@ -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')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user