added SessionDeleteHasMany and SessionDeleteHasManyToMany tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user