Nachtrag zu v1.8.0, beim Prüfen nach dem Deploy gefunden: Meta-Beschreibungen und Taglines der drei Marken (config/domains.php), Tarifvorteil „Starter“ im PlanSeeder, Platzhalter im Admin. Der Wächtertest prüft jetzt auch config/ und database/seeders/. Live steht der Tarifvorteil in der Datenbank und wird im Admin geändert (Seeder überschreibt sonst alle Tarifdaten). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
1.2 KiB
PHP
26 lines
1.2 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\File;
|
|
|
|
/**
|
|
* Öffentliche Wortwahl zur Prüfung (Decision-Update Bildrechte 3.6, Plan D.6):
|
|
* Die Prüfung ist automatisiert — kein Qualitätssiegel, keine redaktionelle
|
|
* Zusage. Die AGB-Stellen ändert erst Fassung v0.7 (Anwalt).
|
|
*/
|
|
test('public texts do not promise a quality seal', function () {
|
|
$hits = collect([lang_path(), resource_path('views'), config_path(), database_path('seeders')])
|
|
->flatMap(fn (string $dir) => File::allFiles($dir))
|
|
->filter(fn ($file) => str_ends_with($file->getFilename(), '.php'))
|
|
->reject(fn ($file) => $file->getFilename() === 'agb.blade.php')
|
|
->filter(fn ($file) => preg_match('/qualitätsgeprüft|quality-checked|auf Qualität geprüft/iu', $file->getContents()) === 1)
|
|
->map(fn ($file) => str_replace(base_path().'/', '', $file->getPathname()))
|
|
->values()
|
|
->all();
|
|
|
|
expect($hits)->toBe([]);
|
|
});
|
|
|
|
test('the publish page names the archive year, not a quality check since then', function () {
|
|
expect(__('static.publish.quality_since', ['year' => 2012]))->toBe('Im Archiv seit 2012')
|
|
->and(trans('static.publish.quality_since', ['year' => 2012], 'en'))->toBe('In the archive since 2012');
|
|
});
|