summaryrefslogtreecommitdiffstats
path: root/tests/integration/command/CommandTest.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-08-07 14:36:16 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2015-08-07 14:36:16 +0200
commit7d53f3a525371e28a932130457eaac72045986c7 (patch)
tree54b1df965a509433dbb5f0d4ad07fefd9d8090e9 /tests/integration/command/CommandTest.php
parentfcae747f7a10a5a94b88b13b1281fcba40faa047 (diff)
add integration test for generating search indices via command line
Diffstat (limited to 'tests/integration/command/CommandTest.php')
-rw-r--r--tests/integration/command/CommandTest.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/integration/command/CommandTest.php b/tests/integration/command/CommandTest.php
new file mode 100644
index 000000000..ed63e5251
--- /dev/null
+++ b/tests/integration/command/CommandTest.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * ownCloud - News
+ *
+ * This file is licensed under the Affero General Public License version 3 or
+ * later. See the COPYING file.
+ *
+ * @author Bernhard Posselt <dev@bernhard-posselt.com>
+ * @copyright Bernhard Posselt 2015
+ */
+
+class CommandTest extends \PHPUnit_Framework_TestCase {
+
+ public function testCommandOk() {
+ $command = __DIR__ . '/../../../../../occ news:create-search-indices';
+ exec($command, $_, $success);
+
+ $this->assertSame(0, $success);
+ }
+
+}