HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/sportivo.komma.pro/vendor/facebook/php-sdk-v4/tests/GraphUserTest.php
<?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());
  }

}