Skip to content

Commit 4246908

Browse files
committed
#6494: Fix end cap tests
The command binding is now opening a dialog, so use the direct parameterised "CreatePatchPrefab endcap" command.
1 parent 4cdd720 commit 4246908

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/Patch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ TEST_F(PatchTest, InvertedEndCapInheritsDef2)
102102
{
103103
auto worldspawn = GlobalMapModule().findOrInsertWorldspawn();
104104

105-
GlobalCommandSystem().execute("PatchEndCap");
105+
GlobalCommandSystem().execute("CreatePatchPrefab endcap");
106106

107107
auto endcap = algorithm::findFirstPatch(worldspawn, [](auto&) { return true; });
108108
Node_setSelected(endcap, true);
@@ -125,7 +125,7 @@ TEST_F(PatchTest, InvertedEndCapInheritsDef3)
125125
{
126126
auto worldspawn = GlobalMapModule().findOrInsertWorldspawn();
127127

128-
GlobalCommandSystem().execute("PatchEndCap");
128+
GlobalCommandSystem().execute("CreatePatchPrefab endcap");
129129

130130
auto endcap = algorithm::findFirstPatch(worldspawn, [](auto&) { return true; });
131131
Node_setSelected(endcap, true);

0 commit comments

Comments
 (0)