Skip to content
Permalink
Browse files

no comment :/

  • Loading branch information
elpaso committed Mar 11, 2020
1 parent e96e762 commit e8cd82b2d2c37db26aafa6ed3e46118dbfd7c1dc
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/gui/testqgsnewdatabasetablewidget.cpp
@@ -160,20 +160,20 @@ void TestQgsNewDatabaseTableNameWidget::testWidgetSignalsPostgres()
arguments = uriSpy.takeLast();
QVERIFY( ! arguments.at( 0 ).toString().isEmpty() );

w->mNewTableName->setText( QStringLiteral( "someNewTableData" ) );
w->mNewTableName->setText( QStringLiteral( "someNewTableData" ) ); //#spellok
QCOMPARE( tableSpy.count(), 1 );
arguments = tableSpy.takeLast();
QCOMPARE( arguments.at( 0 ).toString(), QString( "someNewTableData" ) );
QCOMPARE( arguments.at( 0 ).toString(), QString( "someNewTableData" ) ); //#spellok
QCOMPARE( validationSpy.count(), 1 );
arguments = validationSpy.takeLast();
QCOMPARE( arguments.at( 0 ).toBool(), true );
QVERIFY( w->isValid() );

// Test getters
QCOMPARE( w->table(), QString( "someNewTableData" ) );
QCOMPARE( w->table(), QString( "someNewTableData" ) ); //#spellok
QCOMPARE( w->schema(), QString( "qgis_test" ) );
QCOMPARE( w->dataProviderKey(), QString( "postgres" ) );
QVERIFY( w->uri().contains( R"("qgis_test"."someNewTableData")" ) );
QVERIFY( w->uri().contains( R"("qgis_test"."someNewTableData")" ) ); //#spellok

// Test unique and make it invalid again so we get a status change
w->mNewTableName->setText( QStringLiteral( "someData" ) );

0 comments on commit e8cd82b

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