From 577356cd3dd00e78363c296d7cc3bfec095b55c9 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Fri, 25 Jun 2021 18:34:01 -0400 Subject: [PATCH] Fork error test --- tests/cases/CLI/TestCLI.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/tests/cases/CLI/TestCLI.php b/tests/cases/CLI/TestCLI.php index 258d020..2ce3776 100644 --- a/tests/cases/CLI/TestCLI.php +++ b/tests/cases/CLI/TestCLI.php @@ -100,14 +100,11 @@ class TestCLI extends \JKingWeb\Arsse\Test\AbstractTest { $daemon->fork->returns(null); $this->objMock->get->with(Service::class)->returns($srv->get()); $this->objMock->get->with(Daemon::class)->returns($daemon->get()); - $this->assertConsole("arsse.php daemon --fork=arsse.pid", 0); - $this->assertFileDoesNotExist($f); - Phony::inOrder( - $daemon->checkPIDFilePath->calledWith("arsse.pid"), - $daemon->fork->calledWith($f), - $this->cli->loadConf->called(), - $srv->watch->calledWith(true) - ); + $this->assertConsole("arsse.php daemon --fork=arsse.pid", 10809); + $daemon->checkPIDFilePath->calledWith("arsse.pid"); + $daemon->fork->never()->called(); + $this->cli->loadConf->never()->called(); + $srv->watch->never()->called(); } public function testRefreshAllFeeds(): void {