summaryrefslogtreecommitdiffstats
path: root/tests/lib/Preview
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 15:27:18 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 15:27:18 +0100
commit3a7cf40aaa678bea1df143d2982d603b7a334eec (patch)
tree63c1e3ad7f7f401d14411a4d44c523632906afc9 /tests/lib/Preview
parent0568b012672d650c6b5a49e72c4028dde5463c60 (diff)
downloadnextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.tar.gz
nextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.zip
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Preview')
-rw-r--r--tests/lib/Preview/BackgroundCleanupJobTest.php4
-rw-r--r--tests/lib/Preview/BitmapTest.php2
-rw-r--r--tests/lib/Preview/GeneratorTest.php2
-rw-r--r--tests/lib/Preview/HEICTest.php2
-rw-r--r--tests/lib/Preview/ImageTest.php2
-rw-r--r--tests/lib/Preview/MP3Test.php2
-rw-r--r--tests/lib/Preview/MovieTest.php2
-rw-r--r--tests/lib/Preview/OfficeTest.php2
-rw-r--r--tests/lib/Preview/SVGTest.php2
-rw-r--r--tests/lib/Preview/TXTTest.php2
10 files changed, 11 insertions, 11 deletions
diff --git a/tests/lib/Preview/BackgroundCleanupJobTest.php b/tests/lib/Preview/BackgroundCleanupJobTest.php
index 65e30df4a15..09c4a16f87a 100644
--- a/tests/lib/Preview/BackgroundCleanupJobTest.php
+++ b/tests/lib/Preview/BackgroundCleanupJobTest.php
@@ -61,7 +61,7 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
/** @var IRootFolder */
private $rootFolder;
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$this->userId = $this->getUniqueID();
@@ -87,7 +87,7 @@ class BackgroundCleanupJobTest extends \Test\TestCase {
$this->rootFolder = \OC::$server->getRootFolder();
}
- public function tearDown(): void {
+ protected function tearDown(): void {
if ($this->trashEnabled) {
$appManager = \OC::$server->getAppManager();
$appManager->enableApp('files_trashbin');
diff --git a/tests/lib/Preview/BitmapTest.php b/tests/lib/Preview/BitmapTest.php
index 63f9c6a013e..952f72b276a 100644
--- a/tests/lib/Preview/BitmapTest.php
+++ b/tests/lib/Preview/BitmapTest.php
@@ -30,7 +30,7 @@ namespace Test\Preview;
*/
class BitmapTest extends Provider {
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$fileName = 'testimage.eps';
diff --git a/tests/lib/Preview/GeneratorTest.php b/tests/lib/Preview/GeneratorTest.php
index 167f6aba1b7..cfb78a05da5 100644
--- a/tests/lib/Preview/GeneratorTest.php
+++ b/tests/lib/Preview/GeneratorTest.php
@@ -58,7 +58,7 @@ class GeneratorTest extends \Test\TestCase {
/** @var Generator */
private $generator;
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$this->config = $this->createMock(IConfig::class);
diff --git a/tests/lib/Preview/HEICTest.php b/tests/lib/Preview/HEICTest.php
index 2b4c63098b5..f75ae3192a1 100644
--- a/tests/lib/Preview/HEICTest.php
+++ b/tests/lib/Preview/HEICTest.php
@@ -30,7 +30,7 @@ namespace Test\Preview;
*/
class HEICTest extends Provider {
- public function setUp(): void {
+ protected function setUp(): void {
if ( !in_array("HEIC", \Imagick::queryFormats("HEI*")) ) {
$this->markTestSkipped('ImageMagick is not HEIC aware. Skipping tests');
} else {
diff --git a/tests/lib/Preview/ImageTest.php b/tests/lib/Preview/ImageTest.php
index 200deef3866..40267538804 100644
--- a/tests/lib/Preview/ImageTest.php
+++ b/tests/lib/Preview/ImageTest.php
@@ -30,7 +30,7 @@ namespace Test\Preview;
*/
class ImageTest extends Provider {
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$fileName = 'testimage.jpg';
diff --git a/tests/lib/Preview/MP3Test.php b/tests/lib/Preview/MP3Test.php
index 5e0764a8ed7..15915ac2578 100644
--- a/tests/lib/Preview/MP3Test.php
+++ b/tests/lib/Preview/MP3Test.php
@@ -30,7 +30,7 @@ namespace Test\Preview;
*/
class MP3Test extends Provider {
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$fileName = 'testimage.mp3';
diff --git a/tests/lib/Preview/MovieTest.php b/tests/lib/Preview/MovieTest.php
index 7437ff3567a..2415102a83d 100644
--- a/tests/lib/Preview/MovieTest.php
+++ b/tests/lib/Preview/MovieTest.php
@@ -30,7 +30,7 @@ namespace Test\Preview;
*/
class MovieTest extends Provider {
- public function setUp(): void {
+ protected function setUp(): void {
$avconvBinary = \OC_Helper::findBinaryPath('avconv');
$ffmpegBinary = ($avconvBinary) ? null : \OC_Helper::findBinaryPath('ffmpeg');
diff --git a/tests/lib/Preview/OfficeTest.php b/tests/lib/Preview/OfficeTest.php
index 62981f2f003..555b3f77747 100644
--- a/tests/lib/Preview/OfficeTest.php
+++ b/tests/lib/Preview/OfficeTest.php
@@ -30,7 +30,7 @@ namespace Test\Preview;
*/
class OfficeTest extends Provider {
- public function setUp(): void {
+ protected function setUp(): void {
$libreofficeBinary = \OC_Helper::findBinaryPath('libreoffice');
$openofficeBinary = ($libreofficeBinary) ? null : \OC_Helper::findBinaryPath('openoffice');
diff --git a/tests/lib/Preview/SVGTest.php b/tests/lib/Preview/SVGTest.php
index ccfeede75e6..73ccbc0b136 100644
--- a/tests/lib/Preview/SVGTest.php
+++ b/tests/lib/Preview/SVGTest.php
@@ -30,7 +30,7 @@ namespace Test\Preview;
*/
class SVGTest extends Provider {
- public function setUp(): void {
+ protected function setUp(): void {
$checkImagick = new \Imagick();
if (count($checkImagick->queryFormats('SVG')) === 1) {
parent::setUp();
diff --git a/tests/lib/Preview/TXTTest.php b/tests/lib/Preview/TXTTest.php
index f2cdb72cdd1..e4c6e76c47f 100644
--- a/tests/lib/Preview/TXTTest.php
+++ b/tests/lib/Preview/TXTTest.php
@@ -30,7 +30,7 @@ namespace Test\Preview;
*/
class TXTTest extends Provider {
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$fileName = 'lorem-big.txt';