Commit a54768fb authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

unittest: misc: Check the number of triggers of a clean DB

parent 9c06bc1e
......@@ -145,6 +145,14 @@ public:
}
};
TEST_F( DbModel, NbTriggers )
{
// Test the expected number of triggers on a freshly created database
auto res = ml->initialize( "test.db", "/tmp", cbMock.get() );
ASSERT_EQ( InitializeResult::Success, res );
CheckNbTriggers( 34 );
}
TEST_F( DbModel, Upgrade3to5 )
{
LoadFakeDB( SRC_DIR "/test/unittest/db_v3.sql" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment