toContain("public bool \${$property} = true;") ->toContain("\$this->settings->{$column} = \$this->{$property};") ->toContain("\$this->{$property} = \$this->settings->{$column};") ->and($model) ->toContain("'{$column}'"); })->with(['email', 'discord', 'telegram', 'slack', 'pushover', 'webhook']); it('enables restart limit notifications by default in every channel migration', function () { $migrations = collect(glob(database_path('migrations/*_add_restart_limit_reached_notifications_to_*'))); expect($migrations)->toHaveCount(6); $migrations->each(fn (string $migration) => expect(file_get_contents($migration))->toContain('->default(true)')); }); it('uses the inline validator facade for notification API updates', function () { $controller = file_get_contents(app_path('Http/Controllers/Api/NotificationsController.php')); expect($controller) ->toContain('use Illuminate\\Support\\Facades\\Validator;') ->toContain("Validator::make(\$body, \$config['rules'])") ->not->toContain("customApiValidator(\$body, \$config['rules'])"); });