diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-07 14:41:51 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-07 14:41:51 +0200 |
commit | 55660499b49967a4accb4c23c1334e4b94e4bbbd (patch) | |
tree | 7d522a3988f3c3b1f634cb2530cd0659965fe2dd /tests | |
parent | 7d53f3a525371e28a932130457eaac72045986c7 (diff) |
also add test for running upgrade via cron
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/command/CommandTest.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/integration/command/CommandTest.php b/tests/integration/command/CommandTest.php index ed63e5251..d67e05a2e 100644 --- a/tests/integration/command/CommandTest.php +++ b/tests/integration/command/CommandTest.php @@ -11,8 +11,17 @@ class CommandTest extends \PHPUnit_Framework_TestCase { - public function testCommandOk() { - $command = __DIR__ . '/../../../../../occ news:create-search-indices'; + private $corePath = __DIR__ . '/../../../../../'; + + public function testGenerateIndices() { + $command = $this->corePath . 'occ news:create-search-indices'; + exec($command, $_, $success); + + $this->assertSame(0, $success); + } + + public function testCronUpdate() { + $command = 'php -f ' . $this->corePath . 'cron.php'; exec($command, $_, $success); $this->assertSame(0, $success); |