aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/PreviewTest.php2
-rw-r--r--tests/lib/Traits/MountProviderTrait.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/PreviewTest.php b/tests/lib/PreviewTest.php
index 6ca88253468..cd228801815 100644
--- a/tests/lib/PreviewTest.php
+++ b/tests/lib/PreviewTest.php
@@ -783,7 +783,7 @@ class PreviewTest extends TestCase {
$filename = $this->samples[$sampleId]['sampleFileName'];
$splitFileName = pathinfo($filename);
$extension = $splitFileName['extension'];
- $correction = ($extension === 'eps') ? 1 : 0;
+ $correction = ($extension === 'eps' && PHP_MAJOR_VERSION < 7) ? 1 : 0;
$maxPreviewHeight = $this->samples[$sampleId]['maxPreviewHeight'];
$maxPreviewHeight = $maxPreviewHeight - $correction;
diff --git a/tests/lib/Traits/MountProviderTrait.php b/tests/lib/Traits/MountProviderTrait.php
index bccb5b693ee..0437157e84f 100644
--- a/tests/lib/Traits/MountProviderTrait.php
+++ b/tests/lib/Traits/MountProviderTrait.php
@@ -41,7 +41,7 @@ trait MountProviderTrait {
protected function setUpMountProviderTrait() {
$this->storageFactory = new StorageFactory();
- $this->mountProvider = $this->getMock('\OCP\Files\Config\IMountProvider');
+ $this->mountProvider = $this->getMockBuilder('\OCP\Files\Config\IMountProvider')->getMock();
$this->mountProvider->expects($this->any())
->method('getMountsForUser')
->will($this->returnCallback(function (IUser $user) {