userUriFixture = 'test'; $this->subject = new UserCreatedEvent( $this->createConfiguredMock( RdfResource::class, ['getUri' => $this->userUriFixture] ) ); } public function testSerializeForWebhook(): void { $this->assertSame( [ 'userId' => $this->userUriFixture, ], $this->subject->serializeForWebhook() ); } public function testGetWebhookEventName(): void { $this->assertSame( 'user-created', $this->subject->getWebhookEventName() ); } }