Integrity Tests
Learn about integrity tests in this lesson.
We'll cover the following
Let’s write some data check methods and exercise them in a test. To do this, we’ll start with three new ORM classes that are complicated enough to require some out-of-database constraint checks.
Writing in some complex data
The idea in this example is that we have employees that work for us and projects we need to be done. There is a many-to-many relationship between employees and projects which describes who has been assigned to what project. These assignments are captured in a separate Assignment table.
Get hands-on with 1400+ tech skills courses.