Lege einen wiederholbaren Pruefbestand fuer die Bibliothek an
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
c99a957e6f
commit
abcdc6908e
3 files changed
+97
-1
No files matched your search
@@ -3,6 +3,7 @@
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Domain\Catalog\ArticleService;
|
||||
use App\Domain\Catalog\Composition;
|
||||
use App\Domain\Catalog\CompositionDisplayRelease;
|
||||
use App\Domain\Catalog\ContentService;
|
||||
use App\Domain\Catalog\EditorialContentKind;
|
||||
@@ -62,4 +63,14 @@ public function test_didactic_fields_partial_coverage_and_public_page_follow_the
|
||||
|
||||
$this->get('/medien/bibliothek/geheim.jpg')->assertNotFound();
|
||||
}
|
||||
|
||||
public function test_review_fixture_can_be_repeated(): void
|
||||
{
|
||||
$actor = User::factory()->create();
|
||||
|
||||
$this->artisan('library:review-fixture', ['--actor' => $actor->id])->assertSuccessful();
|
||||
$this->artisan('library:review-fixture', ['--actor' => $actor->id])->assertSuccessful();
|
||||
|
||||
$this->assertSame(1, Composition::query()->where('designation', 'Prüfprogramm Abstand')->count());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user