Skip to content

Commit 6068c19

Browse files
committed
added check for outputChildId
1 parent 6aa3616 commit 6068c19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/src/analysis/testqgsprocessing.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -6156,6 +6156,7 @@ void TestQgsProcessing::modelExecution()
61566156
QCOMPARE( variables.count(), 11 );
61576157
QCOMPARE( variables.value( "DIST" ).value.toInt(), 271 );
61586158
QCOMPARE( variables.value( "SOURCE_LAYER" ).source.parameterName(), QString( "SOURCE_LAYER" ) );
6159+
QCOMPARE( variables.value( "cx1_OUTPUT" ).source.outputChildId(), QString( "cx1" ) );
61596160
QCOMPARE( variables.value( "cx1_OUTPUT" ).source.parameterName(), QString( "" ) );
61606161
QGSCOMPARENEAR( variables.value( "SOURCE_LAYER_minx" ).value.toDouble(), -118.8888, 0.001 );
61616162
QGSCOMPARENEAR( variables.value( "SOURCE_LAYER_miny" ).value.toDouble(), 22.8002, 0.001 );
@@ -6219,7 +6220,9 @@ void TestQgsProcessing::modelExecution()
62196220
QCOMPARE( variables.count(), 16 );
62206221
QCOMPARE( variables.value( "DIST" ).value.toInt(), 271 );
62216222
QCOMPARE( variables.value( "SOURCE_LAYER" ).source.parameterName(), QString( "SOURCE_LAYER" ) );
6223+
QCOMPARE( variables.value( "cx1_OUTPUT" ).source.outputChildId(), QString( "cx1" ) );
62226224
QCOMPARE( variables.value( "cx1_OUTPUT" ).source.parameterName(), QString( "" ) );
6225+
QCOMPARE( variables.value( "cx2_OUTPUT" ).source.outputChildId(), QString( "cx2" ) );
62236226
QCOMPARE( variables.value( "cx2_OUTPUT" ).source.parameterName(), QString( "" ) );
62246227
QGSCOMPARENEAR( variables.value( "SOURCE_LAYER_minx" ).value.toDouble(), -118.8888, 0.001 );
62256228
QGSCOMPARENEAR( variables.value( "SOURCE_LAYER_miny" ).value.toDouble(), 22.8002, 0.001 );

0 commit comments

Comments
 (0)