diff --git a/module/VuFindTheme/tests/unit-tests/src/VuFindTest/LessCompilerTest.php b/module/VuFindTheme/tests/unit-tests/src/VuFindTest/LessCompilerTest.php
index 8f2f4ae66cd164fda54852338b734b4fe4c86502..92cd27add9a5dea056b89e6aef10b78aaf6fb986 100644
--- a/module/VuFindTheme/tests/unit-tests/src/VuFindTest/LessCompilerTest.php
+++ b/module/VuFindTheme/tests/unit-tests/src/VuFindTest/LessCompilerTest.php
@@ -98,7 +98,7 @@ class LessCompilerTest extends Unit\TestCase
         $perms = fileperms($temp);
         $this->testDest = $temp . '/vufind_less_comp_test/';
         if (!($perms & 0x0002)) {
-            $markTestSkipped('No write permissions in system temporary file');
+            $this->markTestSkipped('No write permissions in system temporary file');
         }
         $this->compiler = new LessCompiler();
         $this->compiler->setBasePath($temp . '/vufind_less_comp_test');