File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
src/Cmp/Queues/Domain/Event
behat/features/bootstrap/Context
spec/Cmp/Queues/Domain/Event Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function create($json)
36
36
isset ($ domainEventArray ['id ' ]) ? $ domainEventArray ['id ' ] : null ,
37
37
isset ($ domainEventArray ['isDeprecated ' ]) ? $ domainEventArray ['isDeprecated ' ] : false ,
38
38
isset ($ domainEventArray ['correlationId ' ]) ? $ domainEventArray ['correlationId ' ] : null ,
39
- isset ($ domainEventArray ['extraAttributes ' ]) ? $ domainEventArray ['extraAttributes ' ] : null
39
+ // isset($domainEventArray['extraAttributes']) ? $domainEventArray['extraAttributes'] : null
40
40
);
41
41
} catch (DomainEventException $ e ) {
42
42
throw new InvalidJSONDomainEventException ("Failed creating DomainEvent instance " , 0 , $ e );
Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ public function iSendARandomDomainEvent()
117
117
array (1 ,2 ,3 ,4 ,5 ),
118
118
null ,
119
119
false ,
120
- null ,
121
- ['attribute1 ' , 'attribute2 ' ]
120
+ null
121
+ // ['attribute1', 'attribute2']
122
122
);
123
123
$ publisher = $ this ->getDomainEventPublisher ();
124
124
$ publisher ->add ($ this ->domainEvent );
@@ -138,7 +138,7 @@ public function iShouldConsumeTheRandomDomainEvent()
138
138
assert ($ this ->domainEvent ->getBody () === $ incomingDomainEvent ->getBody (), 'Body doesnt match ' );
139
139
assert ($ this ->domainEvent ->getVersion () === $ incomingDomainEvent ->getVersion (), 'Version doesnt match ' );
140
140
assert ($ this ->domainEvent ->getOccurredOn () === $ incomingDomainEvent ->getOccurredOn (), 'OccurredOn doesnt match ' );
141
- assert ($ this ->domainEvent ->getExtraAttributes () === $ incomingDomainEvent ->getExtraAttributes (), 'ExtraAttributes doesnt match ' );
141
+ // assert($this->domainEvent->getExtraAttributes() === $incomingDomainEvent->getExtraAttributes(), 'ExtraAttributes doesnt match');
142
142
}
143
143
144
144
/**
@@ -155,8 +155,8 @@ public function iSendARandomDomainEventWithAnUnwantedTopic()
155
155
array (1 ,2 ,3 ,4 ,5 ),
156
156
null ,
157
157
false ,
158
- null ,
159
- ['attribute1 ' , 'attribute2 ' ]
158
+ null
159
+ // ['attribute1', 'attribute2']
160
160
);
161
161
$ publisher = $ this ->getDomainEventPublisher ();
162
162
$ publisher ->add ($ this ->domainEvent );
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ function let()
21
21
array ("foo " => "bar " , "empty " => null ),
22
22
'uuid ' ,
23
23
true ,
24
- 'correlation ' ,
25
- ['attribute1 ' , 'attribute2 ' ]
24
+ 'correlation '
25
+ // ['attribute1', 'attribute2']
26
26
);
27
27
}
28
28
@@ -112,10 +112,10 @@ function it_should_have_the_correlation_id()
112
112
$ this ->getCorrelationId ()->shouldBe ("correlation " );
113
113
}
114
114
115
- function it_should_have_the_extra_attributes ()
115
+ /* function it_should_have_the_extra_attributes()
116
116
{
117
117
$this->getExtraAttributes()->shouldBe(['attribute1', 'attribute2']);
118
- }
118
+ }*/
119
119
120
120
function it_can_get_body_values ()
121
121
{
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function it_can_detect_a_optional_fields()
42
42
$ id = "abc " ;
43
43
$ isDeprecated = true ;
44
44
$ correlationId = "def " ;
45
- $ extraAttributes = ['attribute1 ' , 'attribute2 ' ];
45
+ // $extraAttributes = ['attribute1', 'attribute2'];
46
46
47
47
$ taskPreFactory = new DomainEvent (
48
48
'origin ' ,
@@ -52,8 +52,8 @@ function it_can_detect_a_optional_fields()
52
52
array (1 ,2 ,3 ,4 ,5 ),
53
53
$ id ,
54
54
$ isDeprecated ,
55
- $ correlationId,
56
- $ extraAttributes
55
+ $ correlationId
56
+ // $extraAttributes
57
57
);
58
58
$ this ->create (json_encode ($ taskPreFactory ))->shouldBeLike ($ taskPreFactory );
59
59
}
You can’t perform that action at this time.
0 commit comments