Deprecation fix: mock() -> double()