mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Fork error test
This commit is contained in:
parent
514cb0a351
commit
577356cd3d
1 changed files with 5 additions and 8 deletions
|
@ -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…
Reference in a new issue