That's when you take a position contrary to a popular argument, just so as test that argument and not because you really believe in the position you're taking. You do your best to argue against it, in order to see how well it stands up.
It comes from the catholic church. When they were thinking about making someone a saint, they'd appoint a guy to make arguments against making him a saint, and they called that the devil's advocate.