Skip to content

Commit

Permalink
update test for newer message format
Browse files Browse the repository at this point in the history
  • Loading branch information
bpow committed Feb 3, 2025
1 parent 39a9db8 commit 644e362
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Unit/DX/MessageFactories/DxMessageFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
class DxMessageFactoryTest extends TestCase
{
use RefreshDatabase;
private ExpertPanel $expertPanel;
private DxMessageFactory $factory;

public function setup():void
{
Expand Down Expand Up @@ -148,7 +150,7 @@ public function it_creates_a_member_removed_event()
/**
* @test
*/
public function it_creates_a_member_retireded_event()
public function it_creates_a_member_retired_event()
{
$event = new MemberRetired($this->expertPanel->group->members->first());

Expand All @@ -161,7 +163,7 @@ public function it_creates_a_member_retireded_event()
/**
* @test
*/
public function it_creates_a_member_unretireded_event()
public function it_creates_a_member_unretired_event()
{
$event = new MemberUnretired($this->expertPanel->group->members->first());

Expand Down Expand Up @@ -232,11 +234,9 @@ private function assertMembersInMessage($members, $message)

private function assertExpertPanelInMessage($message)
{
$this->assertEquals([
'id' => $this->expertPanel->group->uuid,
'name' => $this->expertPanel->group->displayName,
'type' => $this->expertPanel->group->fullType->name,
'affiliation_id' => $this->expertPanel->affiliation_id
], $message['data']['expert_panel']);
$g = $message['data']['group'];
$this->assertEquals($g['id'], $this->expertPanel->group->uuid);
$this->assertEquals($g['name'], $this->expertPanel->group->name);
$this->assertEquals($g['affiliation_id'], $this->expertPanel->affiliation_id);
}
}

0 comments on commit 644e362

Please sign in to comment.