public function controller_uses_middleware()
{
$this->assertActionUsesMiddleware(SubscriptionController::class, 'store', 'auth');
$this->assertActionUsesMiddleware(SubscriptionController::class, 'update', 'auth');
$this->assertActionUsesMiddleware(SubscriptionController::class, 'destroy', 'auth');
}
Would be great if I could do:
public function controller_uses_middleware()
{
$this->assertActionUsesMiddleware(SubscriptionController::class, ['store, 'update', 'destroy',] 'auth');
}
Once I get a bit more comfortable with this, I'll take a crack at a PR.
I currently have this in a test:
Would be great if I could do:
Once I get a bit more comfortable with this, I'll take a crack at a PR.