@@ -93,7 +93,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnService
9393 $ output = ' testService.service Active running ' ;
9494 $ commandDispatcherStub = $ this ->buildCommandDispatcherStub ();
9595 $ commandDispatcherStub
96- ->dispatch ('list-units ' , $ unitName . ' * ' )
96+ ->dispatch ('list-units ' , $ unitName )
9797 ->willReturn ($ this ->buildCommandStub ($ output ));
9898
9999 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
@@ -112,7 +112,7 @@ public function itShouldReturnAServiceOnServiceGetting()
112112 $ output = ' testService.service Active running ' ;
113113 $ commandDispatcherStub = $ this ->buildCommandDispatcherStub ();
114114 $ commandDispatcherStub
115- ->dispatch ('list-units ' , $ unitName . ' * ' )
115+ ->dispatch ('list-units ' , $ unitName )
116116 ->willReturn ($ this ->buildCommandStub ($ output ));
117117
118118 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
@@ -130,7 +130,7 @@ public function itShouldReturnAServiceWithTheCorrectNameOnServiceGetting()
130130 $ output = ' testService.service Active running ' ;
131131 $ commandDispatcherStub = $ this ->buildCommandDispatcherStub ();
132132 $ commandDispatcherStub
133- ->dispatch ('list-units ' , $ unitName . ' * ' )
133+ ->dispatch ('list-units ' , $ unitName )
134134 ->willReturn ($ this ->buildCommandStub ($ output ));
135135
136136 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
@@ -147,7 +147,7 @@ public function itShouldThrowAnExceptionIfNoServiceCouldBeFound()
147147 $ unitName = 'testService ' ;
148148 $ commandDispatcherStub = $ this ->buildCommandDispatcherStub ();
149149 $ commandDispatcherStub
150- ->dispatch ('list-units ' , $ unitName . ' * ' )
150+ ->dispatch ('list-units ' , $ unitName )
151151 ->willReturn ($ this ->buildCommandStub ('' ));
152152
153153 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
@@ -165,7 +165,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnTimerGe
165165 $ output = ' testTimer.timer Active running ' ;
166166 $ commandDispatcherStub = $ this ->buildCommandDispatcherStub ();
167167 $ commandDispatcherStub
168- ->dispatch ('list-units ' , $ unitName . ' * ' )
168+ ->dispatch ('list-units ' , $ unitName )
169169 ->willReturn ($ this ->buildCommandStub ($ output ));
170170
171171 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
@@ -183,7 +183,7 @@ public function itShouldThrowAnExeceptionIfNotTimerCouldBeFound()
183183 $ unitName = 'testTimer ' ;
184184 $ commandDispatcherStub = $ this ->buildCommandDispatcherStub ();
185185 $ commandDispatcherStub
186- ->dispatch ('list-units ' , $ unitName . ' * ' )
186+ ->dispatch ('list-units ' , $ unitName )
187187 ->willReturn ($ this ->buildCommandStub ('' ));
188188
189189 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
@@ -201,7 +201,7 @@ public function itShouldReturnATimerOnTimerGetting()
201201 $ output = ' testService.service Active running ' ;
202202 $ commandDispatcherStub = $ this ->buildCommandDispatcherStub ();
203203 $ commandDispatcherStub
204- ->dispatch ('list-units ' , $ unitName . ' * ' )
204+ ->dispatch ('list-units ' , $ unitName )
205205 ->willReturn ($ this ->buildCommandStub ($ output ));
206206
207207 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
@@ -219,7 +219,7 @@ public function itShouldReturnATimerWithTheCorrectNameOnTimerGetting()
219219 $ output = ' testService.service Active running ' ;
220220 $ commandDispatcherStub = $ this ->buildCommandDispatcherStub ();
221221 $ commandDispatcherStub
222- ->dispatch ('list-units ' , $ unitName . ' * ' )
222+ ->dispatch ('list-units ' , $ unitName )
223223 ->willReturn ($ this ->buildCommandStub ($ output ));
224224
225225 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
0 commit comments