diff --git a/tests/TestDatabase.h b/tests/TestDatabase.h index fcc31fe8a..8ac562769 100644 --- a/tests/TestDatabase.h +++ b/tests/TestDatabase.h @@ -50,7 +50,14 @@ private slots: QVERIFY( lpCmd ); // try to handle a third party database command + + // test no command factory is available until now + QVERIFY( !db->commandFactory() ); + + // register it db->registerCommand(); + + // make sure it's available now command = db->commandFactory()->newInstance(); TestDatabaseCommand* tCmd = qobject_cast< TestDatabaseCommand* >( command ); QVERIFY( tCmd );