Update NavigationRegion test rid function

Updates NavigationRegion test rid function from deprecated get_region_rid() to use newer get_rid().
This commit is contained in:
smix8 2024-04-16 11:49:09 +02:00
parent 4728ff30c0
commit cbf881432c
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ namespace TestNavigationRegion2D {
TEST_SUITE("[Navigation]") {
TEST_CASE("[SceneTree][NavigationRegion2D] New region should have valid RID") {
NavigationRegion2D *region_node = memnew(NavigationRegion2D);
CHECK(region_node->get_region_rid().is_valid());
CHECK(region_node->get_rid().is_valid());
memdelete(region_node);
}
}

View file

@ -43,7 +43,7 @@ namespace TestNavigationRegion3D {
TEST_SUITE("[Navigation]") {
TEST_CASE("[SceneTree][NavigationRegion3D] New region should have valid RID") {
NavigationRegion3D *region_node = memnew(NavigationRegion3D);
CHECK(region_node->get_region_rid().is_valid());
CHECK(region_node->get_rid().is_valid());
memdelete(region_node);
}