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)