Skip to content
Permalink
Browse files

Update test

  • Loading branch information
nyalldawson committed Feb 17, 2018
1 parent 1f3ee05 commit 7e4cdc024b40f6a74230cb00336b6dc9b22d389d
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/analysis/testqgsprocessing.cpp
@@ -1626,7 +1626,7 @@ void TestQgsProcessing::parameters()
crs = QgsCoordinateReferenceSystem( QStringLiteral( "epsg:28356" ) );
sink.reset( QgsProcessingParameters::parameterAsSink( def.get(), params, fields, wkbType, crs, context, destId ) );
QVERIFY( sink.get() );
QgsVectorFileWriter *writer = dynamic_cast< QgsVectorFileWriter *>( sink.get() );
QgsVectorFileWriter *writer = dynamic_cast< QgsVectorFileWriter *>( dynamic_cast< QgsProcessingFeatureSink * >( sink.get() )->destinationSink() );
QVERIFY( writer );
layer = qobject_cast< QgsVectorLayer *>( QgsProcessingUtils::mapLayerFromString( destId, context ) );
QVERIFY( layer );

0 comments on commit 7e4cdc0

Please sign in to comment.
You can’t perform that action at this time.