fix group names
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Philipp Lang 2022-03-15 13:41:41 +01:00
parent fbb9c5fc8f
commit 4115316290
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class InitializeTest extends TestCase
public function initializeProvider(callable $callback = null): void public function initializeProvider(callable $callback = null): void
{ {
app(GroupFake::class) app(GroupFake::class)
->fetches(null, [1000 => ['name' => 'testgroup']]) ->fetches(null, [1000 => ['name' => '::group::']])
->fetches(1000, []); ->fetches(1000, []);
$backend = app(FakeBackend::class) $backend = app(FakeBackend::class)
->addSearch(123, ['entries_vorname' => '::firstname::', 'entries_nachname' => '::lastname::', 'entries_gruppierungId' => 1000]) ->addSearch(123, ['entries_vorname' => '::firstname::', 'entries_nachname' => '::lastname::', 'entries_gruppierungId' => 1000])
@ -107,7 +107,7 @@ class InitializeTest extends TestCase
'name' => '1a', 'name' => '1a',
'nami_id' => 506, 'nami_id' => 506,
]); ]);
$this->assertDatabaseHas('groups', ['nami_id' => 1000, 'name' => 'testgroup']); $this->assertDatabaseHas('groups', ['nami_id' => 1000, 'name' => '::group::']);
$this->assertDatabaseHas('members', [ $this->assertDatabaseHas('members', [
'nami_id' => 411, 'nami_id' => 411,
'gender_id' => Gender::nami(303)->id, 'gender_id' => Gender::nami(303)->id,