Subversion Repository Public Repository

Nextrek

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
<?php

use Facebook\FacebookRequest;
use Facebook\GraphLocation;
use Facebook\GraphObject;

class GraphLocationTest extends PHPUnit_Framework_TestCase
{

  public function testLocation()
  {
    $response = (
    new FacebookRequest(
      FacebookTestHelper::$testSession,
      'GET',
      '/104048449631599'
    ))->execute()->getGraphObject();
    $this->assertTrue($response instanceof GraphObject);

    $location = $response->getProperty('location', GraphLocation::className());
    $this->assertTrue(is_float($location->getLatitude()));
    $this->assertTrue(is_float($location->getLongitude()));
  }

}

Commits for Nextrek/Android/SmartCharging/endPoints/fb_SDK/tests/GraphLocationTest.php

Diff revisions: vs.
Revision Author Commited Message
507 FSallustio picture FSallustio Thu 20 Aug, 2015 07:51:22 +0000

Merge ramo stable con la nightly.