A police informant testified in court on Monday that 11 suspected Islamic militants on trial planned to attack Barcelona’s metro last year with suicide bombers, who were to include the informant himself.