web: Wortwahl „automatisierte Prüfung“ statt „qualitätsgeprüft“
Decision-Update Bildrechte 3.6 / Plan D.6: keine Siegel- oder Redaktionszusage. Startseiten-Meta, CTA, Veröffentlichen-Seite (DE/EN), Preisseite, Dashboard. „Qualitätsgeprüft seit 2012“ war sachlich falsch → „Im Archiv seit :year“. Wächtertest gegen Rückfälle (Roadmap 3.7). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ccef83b952
commit
ddff7dc989
8 changed files with 42 additions and 16 deletions
26
tests/Feature/Web/AutomatedCheckWordingTest.php
Normal file
26
tests/Feature/Web/AutomatedCheckWordingTest.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?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')])
|
||||
->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');
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue