ApiPlatform\Core\Tests\Metadata\Property\Factory\ExtractorPropertyMetadataFactoryTest::testCreateYaml PHP Method

testCreateYaml() public method

public testCreateYaml ( PropertyMetadata $expectedPropertyMetadata )
$expectedPropertyMetadata ApiPlatform\Core\Metadata\Property\PropertyMetadata
    public function testCreateYaml(PropertyMetadata $expectedPropertyMetadata)
    {
        $configPath = __DIR__ . '/../../../Fixtures/FileConfigurations/resources.yml';
        $propertyMetadataFactory = new ExtractorPropertyMetadataFactory(new YamlExtractor([$configPath]));
        $propertyMetadata = $propertyMetadataFactory->create(FileConfigDummy::class, 'foo');
        $this->assertInstanceOf(PropertyMetadata::class, $propertyMetadata);
        $this->assertEquals($expectedPropertyMetadata, $propertyMetadata);
    }