first commit
Some checks failed
tests / ci (8.5) (push) Has been cancelled
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled

This commit is contained in:
brusnitsyn
2026-04-03 17:20:05 +09:00
commit 3edc8e667e
358 changed files with 39258 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<?php
test('that true is true', function () {
expect(true)->toBeTrue();
});

View File

@@ -0,0 +1,14 @@
<?php
use App\Support\MedicalReport\TemplateWorkbook;
test('template workbook groups fields by departments', function () {
/** @var TemplateWorkbook $templateWorkbook */
$templateWorkbook = app(TemplateWorkbook::class);
$departments = $templateWorkbook->departments();
expect($departments)->not->toBeEmpty();
expect(collect($departments)->pluck('name'))->toContain('Рентгенологическое отделение');
expect(collect($departments)->every(fn (array $department): bool => ! empty($department['sources'] ?? [])))->toBeTrue();
});