Over the last five years, it has confronted a seemingly endless series of tests, including a eurozone-wide financial crisis, Russia’s invasion of Ukraine, renewed fears of a Greek default, and the prospect of a British exit. But none has raised such fundamental questions about the meaning of the EU as the current debate about migration.