Skip to content

Commit 83c6184

Browse files
committed
test(Install): fix context formigration test
1 parent b4c39f3 commit 83c6184

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

install/migration/update_1.1.1_to_1.2.0/04_update_location_zone_relation.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
use Glpi\DBAL\QueryExpression;
3434

3535
/** @var DBmysql $DB */
36-
/** @var Migration $migration */
3736
global $DB;
3837

3938
// Migrate relations based on a country

tests/migration/migration_to_1_2_0_Test.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public function testUpdateCountryLocationZoneRelation()
8989
'plugin_carbon_zones_id' => $zone_id,
9090
]);
9191
$source_zone_id = $DB->insertId();
92+
$migration = new Migration('1.2.0'); // Used in the migration file
9293
$migration_file = __DIR__ . '/../../install/migration/update_1.1.0_to_1.2.0/04_update_location_zone_relation.php';
9394
$migration_file = realpath($migration_file);
9495
require($migration_file);
@@ -134,6 +135,7 @@ public function testUpdateStateLocationZoneRelation()
134135
'plugin_carbon_zones_id' => $zone_id,
135136
]);
136137
$source_zone_id = $DB->insertId();
138+
$migration = new Migration('1.2.0'); // Used in the migration file
137139
$migration_file = __DIR__ . '/../../install/migration/update_1.1.1_to_1.2.0/04_update_location_zone_relation.php';
138140
$migration_file = realpath($migration_file);
139141
require($migration_file);

0 commit comments

Comments
 (0)