getPageInfoType() public static method

public static getPageInfoType ( )
Esempio n. 1
0
 public function testPageInfoType()
 {
     $type = Connection::getPageInfoType();
     $this->assertEquals('PageInfo', $type->getName());
     $this->assertEquals('Information about pagination in a connection.', $type->getDescription());
     $this->assertTrue($type->hasField('hasNextPage'));
     $this->assertTrue($type->hasField('hasPreviousPage'));
     $this->assertTrue($type->hasField('startCursor'));
     $this->assertTrue($type->hasField('endCursor'));
 }