Skip to content

Commit 04f223a

Browse files
author
GsLogiMaker
committed
Fix tests
1 parent c626ea6 commit 04f223a

13 files changed

+26
-26
lines changed

unittests/test_components.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ var _old_world:GFWorld = null
77
func before_each():
88
world = GFWorld.new()
99
_old_world = GFWorld.get_default_world()
10-
GFWorld.set_contextual_singleton(world)
10+
GFWorld.set_default_world(world)
1111

1212
func after_each():
13-
GFWorld.set_contextual_singleton(_old_world)
13+
GFWorld.set_default_world(_old_world)
1414
world.free()
1515

1616

unittests/test_ecs_world.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ var _old_world:GFWorld = null
77
func before_each():
88
world = GFWorld.new()
99
_old_world = GFWorld.get_default_world()
10-
GFWorld.set_contextual_singleton(world)
10+
GFWorld.set_default_world(world)
1111

1212
func after_each():
13-
GFWorld.set_contextual_singleton(_old_world)
13+
GFWorld.set_default_world(_old_world)
1414
world.free()
1515

1616
func test_add_entity():

unittests/test_entities.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ var _old_world:GFWorld = null
77
func before_each():
88
world = GFWorld.new()
99
_old_world = GFWorld.get_default_world()
10-
GFWorld.set_contextual_singleton(world)
10+
GFWorld.set_default_world(world)
1111

1212
func after_each():
13-
GFWorld.set_contextual_singleton(_old_world)
13+
GFWorld.set_default_world(_old_world)
1414
world.free()
1515

1616
#region Tests

unittests/test_errors.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ var _old_world:GFWorld = null
77
func before_each():
88
world = GFWorld.new()
99
_old_world = GFWorld.get_default_world()
10-
GFWorld.set_contextual_singleton(world)
10+
GFWorld.set_default_world(world)
1111

1212
func after_each():
13-
GFWorld.set_contextual_singleton(_old_world)
13+
GFWorld.set_default_world(_old_world)
1414
world.free()
1515

1616
#region Tests

unittests/test_events.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ var _old_world:GFWorld = null
77
func before_each():
88
world = GFWorld.new()
99
_old_world = GFWorld.get_default_world()
10-
GFWorld.set_contextual_singleton(world)
10+
GFWorld.set_default_world(world)
1111

1212
func after_each():
13-
GFWorld.set_contextual_singleton(_old_world)
13+
GFWorld.set_default_world(_old_world)
1414
world.free()
1515

1616
#region Tests

unittests/test_module_rendering_2d.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ var _old_world:GFWorld = null
99
func before_each():
1010
world = GFWorld.new()
1111
_old_world = GFWorld.get_default_world()
12-
GFWorld.set_contextual_singleton(world)
12+
GFWorld.set_default_world(world)
1313

1414
func after_each():
15-
GFWorld.set_contextual_singleton(_old_world)
15+
GFWorld.set_default_world(_old_world)
1616
world.free()
1717

1818
#region Tests

unittests/test_prefab.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ var _old_world:GFWorld = null
88
func before_each():
99
world = GFWorld.new()
1010
_old_world = GFWorld.get_default_world()
11-
GFWorld.set_contextual_singleton(world)
11+
GFWorld.set_default_world(world)
1212

1313
func after_each():
14-
GFWorld.set_contextual_singleton(_old_world)
14+
GFWorld.set_default_world(_old_world)
1515
world.free()
1616

1717
#region Tests

unittests/test_queries.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ var _old_world:GFWorld = null
77
func before_each():
88
world = GFWorld.new()
99
_old_world = GFWorld.get_default_world()
10-
GFWorld.set_contextual_singleton(world)
10+
GFWorld.set_default_world(world)
1111

1212
func after_each():
13-
GFWorld.set_contextual_singleton(_old_world)
13+
GFWorld.set_default_world(_old_world)
1414
world.free()
1515

1616
#region Tests

unittests/test_registration.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ var _old_world:GFWorld = null
1212
func before_each():
1313
world = GFWorld.new()
1414
_old_world = GFWorld.get_default_world()
15-
GFWorld.set_contextual_singleton(world)
15+
GFWorld.set_default_world(world)
1616

1717
func after_each():
18-
GFWorld.set_contextual_singleton(_old_world)
18+
GFWorld.set_default_world(_old_world)
1919
world.free()
2020

2121
#region Tests

unittests/test_relations.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ var _old_world:GFWorld = null
77
func before_each():
88
world = GFWorld.new()
99
_old_world = GFWorld.get_default_world()
10-
GFWorld.set_contextual_singleton(world)
10+
GFWorld.set_default_world(world)
1111

1212
func after_each():
13-
GFWorld.set_contextual_singleton(_old_world)
13+
GFWorld.set_default_world(_old_world)
1414
world.free()
1515

1616
#region Tests

0 commit comments

Comments
 (0)