Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to add test to my own module that depend on the RESTClient module with file mode to have static data. Since all of my request contain the current timestamp in the header, the file name is always unique. Changing the call to module_invoke_all with a call to drupal_alter would let me implement the alter hook to remove the header from the options to generate a file name that does not change for every request.
Comment | File | Size | Author |
---|---|---|---|
#4 | restclient-filemode_drupal_alter-2853633-4-D7.patch | 3.79 KB | fprevos2 |
#2 | restclient-filemode_drupal_alter-2853633-1-D7.patch | 1.17 KB | fprevos2 |
Comments
Comment #2
fprevos2 CreditAttribution: fprevos2 commentedComment #3
fprevos2 CreditAttribution: fprevos2 commentedComment #4
fprevos2 CreditAttribution: fprevos2 commentedI also had to remove the define for the RESTCLIENT_ACTIVE_LIBRARY since it was not picking up the value from the variable_set call in the test setUp function.