Mock calls to record_action in the tests.