Skip to content

Conversation

@markstory
Copy link
Member

@jeremyharris
Copy link
Member

Ack! Thank you! I always forget the docs, feel free to ping me in the future about adding them 😄

@ravage84 ravage84 added this to the 3.x milestone May 16, 2017
Copy link
Member

@ravage84 ravage84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, except that CakePHP 3.4.7 is not released yet, but due to 2017-05-21:
https://github.com/cakephp/cakephp/milestone/132

$expected = [
['id' => 1, 'lng' => 66, 'lat' => 45],
];
$expected = json_encode($expected, JSON_PRETTY_PRINT);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't there an assertion taht does JSON encoding already?

public function testGet()
{
$this->configRequest([
'headers' => ['Accept' => 'application/json']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this could be quite common, I presume, couldn't we have a setAcceptsJson() or something like that?

@markstory markstory self-assigned this May 17, 2017
@markstory markstory merged commit 4fbbf64 into 3.0 May 21, 2017
@markstory markstory deleted the flash-message-testing branch May 21, 2017 14:47
okinaka added a commit to okinaka/docs that referenced this pull request May 23, 2017
@okinaka okinaka mentioned this pull request May 23, 2017
HavokInspiration added a commit that referenced this pull request Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants