Skip to content

Commit

Permalink
Merge pull request #4903 from mhsdesign/task/removeGenericTheEventWas…
Browse files Browse the repository at this point in the history
…PublishedToStreamWithPayload

TASK: Remove generic `theEventWasPublishedToStreamWithPayload` in tests
  • Loading branch information
mhsdesign authored Feb 20, 2024
2 parents c726eae + c41f1d5 commit 56bd837
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Feature: ForkContentStream Without Dimensions
| parentNodeAggregateId | "lady-eleonode-rootford" |
| nodeName | "child" |
| nodeAggregateClassification | "regular" |
And the Event "NodePropertiesWereSet" was published to stream "ContentStream:cs-identifier" with payload:
And the event NodePropertiesWereSet was published with payload:
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "nody-mc-nodeface" |
Expand All @@ -62,7 +62,7 @@ Feature: ForkContentStream Without Dimensions
| Key | Value |
| contentStreamId | "user-cs-identifier" |
| sourceContentStreamId | "cs-identifier" |
And the Event "NodePropertiesWereSet" was published to stream "ContentStream:user-cs-identifier" with payload:
And the event NodePropertiesWereSet was published with payload:
| Key | Value |
| contentStreamId | "user-cs-identifier" |
| nodeAggregateId | "nody-mc-nodeface" |
Expand Down Expand Up @@ -91,7 +91,7 @@ Feature: ForkContentStream Without Dimensions
| Key | Value |
| contentStreamId | "user-cs-identifier" |
| sourceContentStreamId | "cs-identifier" |
And the Event "NodePropertiesWereSet" was published to stream "ContentStream:cs-identifier" with payload:
And the event NodePropertiesWereSet was published with payload:
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "nody-mc-nodeface" |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Feature: Properties
type: string
"""

And the Event "NodePropertiesWereSet" was published to stream "ContentStream:cs-identifier" with payload:
And the event NodePropertiesWereSet was published with payload:
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "sir-david-nodenborough" |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,6 @@ protected static function resolveShortCommandName(string $shortCommandName): str
};
}

/**
* @Given /^the Event "([^"]*)" was published to stream "([^"]*)" with payload:$/
* @throws \Exception
*/
public function theEventWasPublishedToStreamWithPayload(string $eventType, string $streamName, TableNode $payloadTable): void
{
$eventPayload = $this->readPayloadTable($payloadTable);
$this->publishEvent($eventType, StreamName::fromString($streamName), $eventPayload);
}

/**
* @throws \Exception
* @throws \Symfony\Component\Serializer\Exception\ExceptionInterface
Expand Down

0 comments on commit 56bd837

Please sign in to comment.