Youshido\Tests\Library\Type\UnionTypeTest::testObjectCreation PHP Метод

testObjectCreation() публичный Метод

public testObjectCreation ( )
    public function testObjectCreation()
    {
        $type = new TestUnionType();
        $this->assertEquals('TestUnion', $type->getName());
        $this->assertEquals('Union collect cars types', $type->getDescription());
        $this->assertEquals([new TestObjectType()], $type->getTypes());
        $this->assertEquals('test', $type->resolveType('test'));
    }