* @copyright Bernhard Posselt 2015 */ class CommandTest extends \PHPUnit_Framework_TestCase { private $corePath; public function setUp() { $this->corePath = __DIR__ . '/../../../../../'; } public function testGenerateIndices() { $command = $this->corePath . 'occ news:create-search-indices'; exec($command, $_, $success); $this->assertSame(0, $success); } public function testValidateInstall() { $command = $this->corePath . 'occ news:verify-install'; exec($command, $_, $success); $this->assertSame(0, $success); } public function testCronUpdate() { $command = 'php -f ' . $this->corePath . 'cron.php'; exec($command, $_, $success); $this->assertSame(0, $success); } }