(#18978) Assign HEREDOC to script variable

Previously, this test was failing trying to call a method named script
with the HEREDOC as an argument, and failing of course. Somehow I
managed to delete the equals sign between the time I last ran the test
and when I checked it in.