diff --git a/tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp b/tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp index 2efa972972d..125943f534c 100644 --- a/tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp +++ b/tests/src/gui/testqgsvaluerelationwidgetwrapper.cpp @@ -263,8 +263,8 @@ void TestQgsValueRelationWidgetWrapper::testDrillDown() // Check null is selected QCOMPARE( w_municipality.mComboBox->count(), 3 ); QCOMPARE( w_municipality.mComboBox->itemText( 0 ), QStringLiteral( "(no selection)" ) ); - QVERIFY( w_municipality.value().isNull() ); - QCOMPARE( w_municipality.value().toString(), QString() ); + QCOMPARE( w_municipality.mComboBox->currentIndex(), 0 ); + QVERIFY( QgsVariantUtils::isNull( w_municipality.value() ) ); // Check order by value false cfg_municipality[QStringLiteral( "AllowNull" )] = false;