So.. if I do a POST request to the API which is expected to create an object in the DB. Should I be able to query the DB afterwards (using the ORM) and see the object?

Ah wait nevermind I figured out it was actually working.. It just wasnt what i expected (I'm missing some data in the mock db)

👍 (1)

Trying to write a test for my API.. When I try this in my FunctionalTest:

  1. $result = $this->post($url, [], $headers, null, $body);

returns a 503.. How can I make sure the proper test environment is created? (edited)

I can overwrite a method in my child class, instead of modifying the ModuleResourceLoader. IMO there should still be a setting to disable the GET vars on resources though :))

Its limited how many hours there are on this project.. Its this old school package http://www.fpdf.org/ (edited)

Attachments:
FPDF
FPDF

Aw man, doesnt look like it in SimpleResourceURLGenerator::urlForResource() 😞

I'm using a PHP package which needs a clean url, or its not happy

When using ModuleResourceLoader, is there a way to disable the GET param appended to the path? (edited)