Outlets give us a way to connect our code to storyboard and XIB objects. But sometimes we accidentally disconnect them. When this happens, it causes all sort of problems that can be hard to diagnose.
In this chapter, you’ll learn how to write tests for outlet connections. These tests will serve as an early warning system. The next time someone disconnects an outlet, these tests will save you time.