preview_name_consistency_test
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
Test Suite: Preview Name Consistency Tests
Source File: /addons/grid_building/test/placement/workflows/preview_name_consistency_test.gd
Extends: GdUnitTestSuite
Properties
- Property:
runner: GdUnitSceneRunner - Property:
env: [AllSystemsTestEnvironment](./all-systems-test-environment/) - Property:
system: [BuildingSystem](./building-system/) - Property:
targeting_state: [GridTargetingState](./grid-targeting-state/) - Property:
mode_state: [ModeState](./mode-state/) - Property:
placeable_2d_test: [Placeable](./placeable/) = load("res://addons/grid_building/test/resources/placeable/test_2d_placeable.tres") - Property:
placeable_with_rules: [Placeable](./placeable/) - Property:
placeable_different: [Placeable](./placeable/)
Private Properties
- Property:
_container: [GBCompositionContainer](./gb-composition-container/) (private)
Public Methods
before
before_test
after
get_current_preview
1
| get_current_preview() -> Node2D
|
Gets the current building preview from the building state
get_expected_preview_name
1
| get_expected_preview_name(placeable: Placeable) -> String
|
Gets the expected preview name for a placeable
assert_preview_valid_and_named
1
2
3
4
| assert_preview_valid_and_named(
preview: Node2D,
expected_name: String
) -> void
|
Asserts that preview is not null and has the expected name
get_test_placeable
1
| get_test_placeable(key: String) -> Placeable
|
create_placeable_with_rules
1
2
3
4
5
| create_placeable_with_rules(
p_root_name: String,
p_shape_size: Vector2,
p_display_name: String
) -> Placeable
|
Parameterized factory: creates a placeable with collision + tile rules
create_test_placeable_with_rules
1
| create_test_placeable_with_rules() -> Placeable
|
create_different_test_placeable_with_rules
1
| create_different_test_placeable_with_rules() -> Placeable
|
Grid Building v5.0.8 | Generated 24/05/2026