From 02f795f5f2c8f77c842a375621b397b7796333f5 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Wed, 1 Sep 2021 16:24:53 +0200
Subject: [PATCH] fix migration tests

---
 tests/unit/lib/classes/MigrationTest.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/unit/lib/classes/MigrationTest.php b/tests/unit/lib/classes/MigrationTest.php
index 1f0bc98c56b..0aabbcd42c6 100644
--- a/tests/unit/lib/classes/MigrationTest.php
+++ b/tests/unit/lib/classes/MigrationTest.php
@@ -41,6 +41,11 @@ class MigrationTest extends \Codeception\Test\Unit
         {
             private $versions = [0];
 
+            public function getDomain()
+            {
+                return 'test';
+            }
+
             public function getBranch()
             {
                 return 0;
@@ -81,7 +86,7 @@ class MigrationTest extends \Codeception\Test\Unit
         $migrator->migrateTo(2);
 
         $relevant = $migrator->relevantMigrations(null);
-        $this->assertSame(1, count($relevant));
+        $this->assertSame(2, count($relevant));
     }
 
     public function testMigrationUp()
-- 
GitLab