Nextrek
@ 507
Nextrek / Android / SmartCharging / endPoints / fb_SDK / tests / GraphUserTest.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<?php use Facebook\FacebookRequest; use Facebook\GraphUser; class GraphUserTest extends PHPUnit_Framework_TestCase { public function testMeReturnsGraphUser() { $response = ( new FacebookRequest( FacebookTestHelper::$testSession, 'GET', '/me' ))->execute()->getGraphObject(GraphUser::className()); $info = FacebookTestHelper::$testSession->getSessionInfo(); $this->assertTrue($response instanceof GraphUser); $this->assertEquals($info->getId(), $response->getId()); $this->assertNotNull($response->getName()); $this->assertNotNull($response->getLastName()); $this->assertNotNull($response->getLink()); } } |
Commits for Nextrek/Android/SmartCharging/endPoints/fb_SDK/tests/GraphUserTest.php
Revision | Author | Commited | Message |
---|---|---|---|
507 | FSallustio | Thu 20 Aug, 2015 07:51:22 +0000 | Merge ramo stable con la nightly. |