|
|
@ -215,7 +215,7 @@ class ParseTest extends PHPUnit_Framework_TestCase { |
|
|
|
$body = $response->getContent(); |
|
|
|
$this->assertEquals(200, $response->getStatusCode()); |
|
|
|
$data = json_decode($body, true); |
|
|
|
$this->assertEquals('entry', $data['data']['type']); |
|
|
|
$this->assertEquals('entry', $data['data']['type']); |
|
|
|
$this->assertEquals('http://example.com/100', $data['data']['in-reply-to'][0]); |
|
|
|
$this->assertArrayHasKey('http://example.com/100', $data['data']['refs']); |
|
|
|
$this->assertEquals('Example Post', $data['data']['refs']['http://example.com/100']['name']); |
|
|
@ -289,7 +289,7 @@ class ParseTest extends PHPUnit_Framework_TestCase { |
|
|
|
$this->assertEquals(200, $response->getStatusCode()); |
|
|
|
$data = json_decode($body, true); |
|
|
|
$this->assertEquals('entry', $data['data']['type']); |
|
|
|
$this->assertEquals('I\'ll be there!', $data['data']['name']); |
|
|
|
$this->assertEquals('I\'ll be there!', $data['data']['content']['text']); |
|
|
|
$this->assertEquals('yes', $data['data']['rsvp']); |
|
|
|
} |
|
|
|
|
|
|
@ -537,7 +537,7 @@ class ParseTest extends PHPUnit_Framework_TestCase { |
|
|
|
$this->assertEquals('45.518716', $venue['latitude']); |
|
|
|
$this->assertEquals('Homebrew Website Club!', $data['data']['content']['text']); |
|
|
|
$this->assertEquals('https://aaronparecki.com/2017/06/07/12/photo.jpg', $data['data']['photo'][0]); |
|
|
|
$this->assertEquals('2017-06-07T17:14:40-07:00', $data['data']['published']); |
|
|
|
$this->assertEquals('2017-06-07T17:14:40-0700', $data['data']['published']); |
|
|
|
$this->assertArrayNotHasKey('name', $data['data']); |
|
|
|
} |
|
|
|
|
|
|
@ -554,7 +554,7 @@ class ParseTest extends PHPUnit_Framework_TestCase { |
|
|
|
$this->assertEquals('https://foursquare.com/v/57104d2e498ece022e169dca', $venue['url']); |
|
|
|
$this->assertEquals('Homebrew Website Club!', $data['data']['content']['text']); |
|
|
|
$this->assertEquals('https://aaronparecki.com/2017/06/07/12/photo.jpg', $data['data']['photo'][0]); |
|
|
|
$this->assertEquals('2017-06-07T17:14:40-07:00', $data['data']['published']); |
|
|
|
$this->assertEquals('2017-06-07T17:14:40-0700', $data['data']['published']); |
|
|
|
$this->assertArrayNotHasKey('name', $data['data']); |
|
|
|
} |
|
|
|
|
|
|
|