summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-08-07 14:41:51 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-08-07 14:41:51 +0200
commit55660499b49967a4accb4c23c1334e4b94e4bbbd (patch)
tree7d522a3988f3c3b1f634cb2530cd0659965fe2dd /tests
parent7d53f3a525371e28a932130457eaac72045986c7 (diff)
also add test for running upgrade via cron
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/command/CommandTest.php13
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);