@@ -97,13 +97,13 @@ public function testThrowIfNeitherQueueOptionNorProcessorImplementsQueueSubscrib
97
97
]);
98
98
}
99
99
100
- public function testShouldExecuteConsumptionWithExplisitlySetQueueViaQueueOption ()
100
+ public function testShouldExecuteConsumptionWithExplicitlySetQueueViaQueueOption ()
101
101
{
102
102
$ processor = $ this ->createProcessor ();
103
103
104
104
$ context = $ this ->createContextMock ();
105
105
$ context
106
- ->expects ($ this ->once ())
106
+ ->expects ($ this ->never ())
107
107
->method ('close ' )
108
108
;
109
109
@@ -118,11 +118,6 @@ public function testShouldExecuteConsumptionWithExplisitlySetQueueViaQueueOption
118
118
->method ('consume ' )
119
119
->with ($ this ->isInstanceOf (ChainExtension::class))
120
120
;
121
- $ consumer
122
- ->expects ($ this ->exactly (1 ))
123
- ->method ('getPsrContext ' )
124
- ->will ($ this ->returnValue ($ context ))
125
- ;
126
121
127
122
$ container = new Container ();
128
123
$ container ->set ('processor-service ' , $ processor );
@@ -143,7 +138,7 @@ public function testShouldExecuteConsumptionWhenProcessorImplementsQueueSubscrib
143
138
144
139
$ context = $ this ->createContextMock ();
145
140
$ context
146
- ->expects ($ this ->once ())
141
+ ->expects ($ this ->never ())
147
142
->method ('close ' )
148
143
;
149
144
@@ -163,11 +158,6 @@ public function testShouldExecuteConsumptionWhenProcessorImplementsQueueSubscrib
163
158
->method ('consume ' )
164
159
->with ($ this ->isInstanceOf (ChainExtension::class))
165
160
;
166
- $ consumer
167
- ->expects ($ this ->at (3 ))
168
- ->method ('getPsrContext ' )
169
- ->will ($ this ->returnValue ($ context ))
170
- ;
171
161
172
162
$ container = new Container ();
173
163
$ container ->set ('processor-service ' , $ processor );
0 commit comments