@@ -102,14 +102,7 @@ protected function setUp(): void
102102 'FastForward \\DevTools \\' => 'src/ ' ,
103103 ]);
104104 $ this ->projectCapabilitiesResolver ->resolve (Argument::any (), Argument::any (), Argument::any ())
105- ->willReturn (new ProjectCapabilities (
106- [getcwd () . '/src ' ],
107- 'FastForward \\DevTools ' ,
108- false ,
109- false ,
110- true ,
111- true ,
112- ));
105+ ->willReturn (new ProjectCapabilities (['src/ ' ], 'FastForward \\DevTools ' , false , false , true , true ));
113106 $ this ->input ->getOption ('target ' )
114107 ->willReturn ('.github/wiki ' );
115108 $ this ->input ->getOption ('cache-dir ' )
@@ -160,6 +153,12 @@ public function executeWillReturnSuccessWhenProcessQueueSucceeds(): void
160153 )
161154 ->willReturn ($ this ->processBuilder ->reveal ())
162155 ->shouldBeCalled ();
156+ $ this ->filesystem ->getAbsolutePath ('src/ ' )
157+ ->willReturn (getcwd () . '/src ' )
158+ ->shouldBeCalled ();
159+ $ this ->processBuilder ->withArgument ('--directory ' , getcwd () . '/src ' )
160+ ->willReturn ($ this ->processBuilder ->reveal ())
161+ ->shouldBeCalled ();
163162 $ this ->processQueue ->add ($ this ->process ->reveal (), Argument::cetera ())
164163 ->shouldBeCalled ();
165164 $ this ->processQueue ->run ($ this ->output ->reveal ())
@@ -189,6 +188,12 @@ public function executeWithNoCacheWillSkipPhpDocumentorCacheFolder(): void
189188 ->willReturn (true );
190189 $ this ->processBuilder ->withArgument ('--cache-folder ' , Argument::cetera ())
191190 ->shouldNotBeCalled ();
191+ $ this ->filesystem ->getAbsolutePath ('src/ ' )
192+ ->willReturn (getcwd () . '/src ' )
193+ ->shouldBeCalled ();
194+ $ this ->processBuilder ->withArgument ('--directory ' , getcwd () . '/src ' )
195+ ->willReturn ($ this ->processBuilder ->reveal ())
196+ ->shouldBeCalled ();
192197 $ this ->processQueue ->add ($ this ->process ->reveal (), Argument::cetera ())
193198 ->shouldBeCalled ();
194199 $ this ->processQueue ->run ($ this ->output ->reveal ())
0 commit comments