added SessionDeleteHasMany and SessionDeleteHasManyToMany tests

This commit is contained in:
2026-05-26 15:50:32 +02:00
parent 85e6ee4b93
commit b22a830d18
3 changed files with 86 additions and 1 deletions
+4
View File
@@ -66,6 +66,10 @@ TEST_CASE_METHOD(SessionFixture, "Test delete object with has many relation", "[
REQUIRE(author_result->is_persistent());
REQUIRE(author_result.value()->books.size() == 5);
const auto id = s_king->id;
auto del_res = ses.remove(s_king);
REQUIRE(del_res);
author_result = ses.find<author>(id);
REQUIRE_FALSE(author_result);
}