mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
d66a5316ae
Before this commit, is_empty() was being applied before returning the mock response. But we want to be able to mock the empty response for some tests, hence moving the condition to null/isset, that is the value that array_pop() returns where there aren't more elements in the array. With that change performed, we can test lti_load_cartridge() with empty responses, hence adding a new test for that.