Browse Source

Fork error test

rpm
J. King 3 years ago
parent
commit
577356cd3d
  1. 13
      tests/cases/CLI/TestCLI.php

13
tests/cases/CLI/TestCLI.php

@ -100,14 +100,11 @@ class TestCLI extends \JKingWeb\Arsse\Test\AbstractTest {
$daemon->fork->returns(null); $daemon->fork->returns(null);
$this->objMock->get->with(Service::class)->returns($srv->get()); $this->objMock->get->with(Service::class)->returns($srv->get());
$this->objMock->get->with(Daemon::class)->returns($daemon->get()); $this->objMock->get->with(Daemon::class)->returns($daemon->get());
$this->assertConsole("arsse.php daemon --fork=arsse.pid", 0); $this->assertConsole("arsse.php daemon --fork=arsse.pid", 10809);
$this->assertFileDoesNotExist($f); $daemon->checkPIDFilePath->calledWith("arsse.pid");
Phony::inOrder( $daemon->fork->never()->called();
$daemon->checkPIDFilePath->calledWith("arsse.pid"), $this->cli->loadConf->never()->called();
$daemon->fork->calledWith($f), $srv->watch->never()->called();
$this->cli->loadConf->called(),
$srv->watch->calledWith(true)
);
} }
public function testRefreshAllFeeds(): void { public function testRefreshAllFeeds(): void {

Loading…
Cancel
Save