Log message #4155331

# At Username Text
# Jul 3rd 2018, 08:39 josbeir o_O
# Jul 3rd 2018, 08:39 josbeir :P
# Jul 3rd 2018, 08:39 josbeir but no location header
# Jul 3rd 2018, 08:38 birdy247 Hence why I assetRedirect
# Jul 3rd 2018, 08:38 birdy247 yes
# Jul 3rd 2018, 08:38 birdy247 but that what I expect
# Jul 3rd 2018, 08:38 josbeir thats a redirect
# Jul 3rd 2018, 08:38 birdy247 302
# Jul 3rd 2018, 08:38 josbeir idd, _getBodyAsString does the same tho
# Jul 3rd 2018, 08:38 dereuromark tricky thing, this new psr stuff
# Jul 3rd 2018, 08:38 dereuromark ->getBody()->getContents() :slightly_smiling_face:
# Jul 3rd 2018, 08:37 josbeir 200?
# Jul 3rd 2018, 08:37 josbeir what is the response code ?
# Jul 3rd 2018, 08:37 birdy247 Yes
# Jul 3rd 2018, 08:37 birdy247 File uploaded https://cakesf.slack.com/files/U0T295QA3/FBJ5Y1U5T/-.php / https://slack-files.com/T053DPNCM-FBJ5Y1U5T-7fce34f14c
# Jul 3rd 2018, 08:37 josbeir set $this->disableErrorHandlerMiddleware() on the top of your test
# Jul 3rd 2018, 08:36 birdy247 Jst gives ''
# Jul 3rd 2018, 08:36 josbeir debug($this->_getBodyAsString())
# Jul 3rd 2018, 08:35 birdy247 debug($this->_response->getBody());
# Jul 3rd 2018, 08:35 josbeir :P
# Jul 3rd 2018, 08:35 josbeir not the response
# Jul 3rd 2018, 08:35 josbeir you need to debug the responsebody
# Jul 3rd 2018, 08:35 josbeir nah thats wrong
# Jul 3rd 2018, 08:35 birdy247 where it works
# Jul 3rd 2018, 08:35 birdy247 thats it running locally
# Jul 3rd 2018, 08:35 birdy247 File uploaded https://cakesf.slack.com/files/U0T295QA3/FBHF2TNFK/-.php / https://slack-files.com/T053DPNCM-FBHF2TNFK-e341c11d3c
# Jul 3rd 2018, 08:32 josbeir @birdy247 do a debug on the response body and disable set $this->disableErrorHandlerMiddleware()
# Jul 3rd 2018, 08:32 tim When using `matching()`, is there a way to `contain()` the matchingData on a belongsToMany? When I `contain` it now, it returns all of the records associated with that user rather than the one that matched.
# Jul 3rd 2018, 08:30 bravo-kernel No templates needed, ever
# Jul 3rd 2018, 08:30 bravo-kernel Most important, look at what that action returns at the end of the function
# Jul 3rd 2018, 08:29 bravo-kernel @james.phillips crud-json-api extends crud so you should look for an example of a custom e.g. ‘Index’ action there.
# Jul 3rd 2018, 08:29 birdy247 so maybe mysql strict mode coming into play?
# Jul 3rd 2018, 08:29 birdy247 Its all using fixtures
# Jul 3rd 2018, 08:28 tim First thing that comes to mind would be database inconsistencies, when we're talking about adding stuff. Perhaps a FK or Nullable field that's different from local
# Jul 3rd 2018, 08:27 birdy247 Thats one
# Jul 3rd 2018, 08:27 birdy247 There were 6 failures: 1) App\Test\TestCase\Controller\Admin\MembersControllerTest::testAddManualYearFixedWithOneChosenExtras No location header set.
# Jul 3rd 2018, 08:27 birdy247 $this->post('/members/add', $data); $this->assertRedirect(['controller' => 'InvoiceItems', 'action' => 'basket']);
# Jul 3rd 2018, 08:25 james.phillips If I dont have a view method it works without a template...
# Jul 3rd 2018, 08:25 tim Which one? :P
# Jul 3rd 2018, 08:25 birdy247 The asserts fail
# Jul 3rd 2018, 08:25 tim @birdy247 Where is it failing?