@@ -97,13 +97,13 @@ public function testThrowIfNeitherQueueOptionNorProcessorImplementsQueueSubscrib
9797 ]);
9898 }
9999
100- public function testShouldExecuteConsumptionWithExplisitlySetQueueViaQueueOption ()
100+ public function testShouldExecuteConsumptionWithExplicitlySetQueueViaQueueOption ()
101101 {
102102 $ processor = $ this ->createProcessor ();
103103
104104 $ context = $ this ->createContextMock ();
105105 $ context
106- ->expects ($ this ->once ())
106+ ->expects ($ this ->never ())
107107 ->method ('close ' )
108108 ;
109109
@@ -118,11 +118,6 @@ public function testShouldExecuteConsumptionWithExplisitlySetQueueViaQueueOption
118118 ->method ('consume ' )
119119 ->with ($ this ->isInstanceOf (ChainExtension::class))
120120 ;
121- $ consumer
122- ->expects ($ this ->exactly (1 ))
123- ->method ('getPsrContext ' )
124- ->will ($ this ->returnValue ($ context ))
125- ;
126121
127122 $ container = new Container ();
128123 $ container ->set ('processor-service ' , $ processor );
@@ -143,7 +138,7 @@ public function testShouldExecuteConsumptionWhenProcessorImplementsQueueSubscrib
143138
144139 $ context = $ this ->createContextMock ();
145140 $ context
146- ->expects ($ this ->once ())
141+ ->expects ($ this ->never ())
147142 ->method ('close ' )
148143 ;
149144
@@ -163,11 +158,6 @@ public function testShouldExecuteConsumptionWhenProcessorImplementsQueueSubscrib
163158 ->method ('consume ' )
164159 ->with ($ this ->isInstanceOf (ChainExtension::class))
165160 ;
166- $ consumer
167- ->expects ($ this ->at (3 ))
168- ->method ('getPsrContext ' )
169- ->will ($ this ->returnValue ($ context ))
170- ;
171161
172162 $ container = new Container ();
173163 $ container ->set ('processor-service ' , $ processor );
0 commit comments