Skip to content
Permalink
Browse files

Fix drill-down test

  • Loading branch information
elpaso committed Mar 4, 2020
1 parent 36457fa commit 60e9ed4b2b55bdd917ba3366bce16e6078703a6c
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp
@@ -170,14 +170,14 @@ void TestQgsValueRelationWidgetWrapper::testDrillDown()
cfg_municipality.insert( QStringLiteral( "NofColumns" ), 1 );
cfg_municipality.insert( QStringLiteral( "AllowNull" ), false );
cfg_municipality.insert( QStringLiteral( "OrderByValue" ), true );
cfg_municipality.insert( QStringLiteral( "FilterExpression" ), QStringLiteral( "\"province\" = current_value('fk_province')" ) );
cfg_municipality.insert( QStringLiteral( "FilterExpression" ), QStringLiteral( "\"province\" = current_value('fk_province')" ) );
cfg_municipality.insert( QStringLiteral( "UseCompleter" ), false );
w_municipality.setConfig( cfg_municipality );
w_municipality.widget();
w_municipality.setEnabled( true );

QCOMPARE( w_municipality.mCache.size(), 0 );
QCOMPARE( w_municipality.mComboBox->count(), 0 );
QCOMPARE( w_municipality.mCache.size(), 2 );
QCOMPARE( w_municipality.mComboBox->count(), 2 );

// Set a feature
w_municipality.setFeature( vl2.getFeature( 1 ) );

0 comments on commit 60e9ed4

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