File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,9 @@ public function testFilenamePropertyWithInvalidFilenameAndCompression(): void
159159 $ this ->BackupExport ->filename = TMP . 'backup.txt ' ;
160160 }
161161
162+ /**
163+ * @link \DatabaseBackup\Utility\BackupExport::__call()
164+ */
162165 #[Test]
163166 public function testCallMagicMethod (): void
164167 {
@@ -209,12 +212,12 @@ public function testExportWithTimeoutFromConfiguration(): void
209212 Configure::write ('DatabaseBackup.processTimeout ' , 45 );
210213
211214 /** @var \DatabaseBackup\Executor\Executor&\Mockery\MockInterface $Executor */
212- $ Executor = Mockery::mock (FakeExecutor::class)->makePartial ();
213- $ Executor
215+ $ Executor = Mockery::mock (FakeExecutor::class . '[runProcess] ' )
214216 ->shouldReceive ('runProcess ' )
215217 ->with (TMP . 'backup.sql ' , 45 )
216218 ->once ()
217- ->andReturn (new ReflectionClass (Process::class)->newInstanceWithoutConstructor ());
219+ ->andReturn (new ReflectionClass (Process::class)->newInstanceWithoutConstructor ())
220+ ->getMock ();
218221
219222 $ this ->BackupExport ->Executor = $ Executor ;
220223
You can’t perform that action at this time.
0 commit comments