Because this gets passed from PHP through to JS, back to PHP for the controller, and then finally through to JS again for the form modal, I think the only way to adequately test this is through behat tests. There's a card in progress right now to create behat tests, so I'm not going to duplicate efforts creating a behat setup in this PR.
If the reviewer agrees, I'll create a separate card to add behat tests for this scenario, which can be blocked on the existing behat card.
Because this gets passed from PHP through to JS, back to PHP for the controller, and then finally through to JS again for the form modal, I think the only way to adequately test this is through behat tests. There's a card in progress right now to create behat tests, so I'm not going to duplicate efforts creating a behat setup in this PR.
If the reviewer agrees, I'll create a separate card to add behat tests for this scenario, which can be blocked on the existing behat card.
Issue