* @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); } }