getName() public method

public getName ( )
Ejemplo n.º 1
0
 public function testNormalCreatingParam()
 {
     $objectType = new ObjectType(['name' => 'Post', 'fields' => ['id' => new IntType()], 'description' => 'Post type description']);
     $this->assertEquals($objectType->getKind(), TypeMap::KIND_OBJECT);
     $this->assertEquals($objectType->getName(), 'Post');
     $this->assertEquals($objectType->getType(), $objectType);
     $this->assertEquals($objectType->getType()->getName(), 'Post');
     $this->assertEquals($objectType->getNamedType(), $objectType);
     $this->assertEmpty($objectType->getInterfaces());
     $this->assertTrue($objectType->isValidValue($objectType));
     $this->assertTrue($objectType->isValidValue(null));
     $this->assertEquals('Post type description', $objectType->getDescription());
 }