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

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

(cherry picked from commit a54768fb)
Signed-off-by: default avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent d4737091
......@@ -134,6 +134,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