123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace Test\Preview;
- class OfficeTest extends Provider {
- protected function setUp(): void {
- $libreofficeBinary = \OC_Helper::findBinaryPath('libreoffice');
- $openofficeBinary = ($libreofficeBinary) ? null : \OC_Helper::findBinaryPath('openoffice');
- if ($libreofficeBinary || $openofficeBinary) {
- parent::setUp();
- $fileName = 'testimage.odt';
- $this->imgPath = $this->prepareTestFile($fileName, \OC::$SERVERROOT . '/tests/data/' . $fileName);
- $this->width = 595;
- $this->height = 842;
- $this->provider = new \OC\Preview\OpenDocument;
- } else {
- $this->markTestSkipped('No Office provider present');
- }
- }
- }
|