2015-06-06 10:21:36 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2015-06-06 10:21:36 -04:00
|
|
|
/**
|
2024-05-10 09:09:14 -04:00
|
|
|
* SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2015-06-06 10:21:36 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace Test\Preview;
|
|
|
|
|
|
2025-06-12 12:31:58 -04:00
|
|
|
use OC\Preview\MP3;
|
|
|
|
|
|
2015-11-20 05:27:11 -05:00
|
|
|
/**
|
2016-05-20 09:38:20 -04:00
|
|
|
* Class MP3Test
|
2015-11-20 05:27:11 -05:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
* @package Test\Preview
|
|
|
|
|
*/
|
2025-10-20 19:52:40 -04:00
|
|
|
#[\PHPUnit\Framework\Attributes\Group('DB')]
|
2016-05-20 09:38:20 -04:00
|
|
|
class MP3Test extends Provider {
|
2019-11-27 09:27:18 -05:00
|
|
|
protected function setUp(): void {
|
2015-06-06 10:21:36 -04:00
|
|
|
parent::setUp();
|
|
|
|
|
|
|
|
|
|
$fileName = 'testimage.mp3';
|
|
|
|
|
$this->imgPath = $this->prepareTestFile($fileName, \OC::$SERVERROOT . '/tests/data/' . $fileName);
|
|
|
|
|
$this->width = 200;
|
|
|
|
|
$this->height = 200;
|
2025-06-12 12:31:58 -04:00
|
|
|
$this->provider = new MP3;
|
2015-06-06 10:21:36 -04:00
|
|
|
}
|
|
|
|
|
}
|