thirdparty docgen normalizer: fix return type for telephone

This commit is contained in:
2022-01-12 09:39:15 +01:00
parent 6b1310148f
commit 9fe744f09f
3 changed files with 15 additions and 6 deletions

View File

@@ -91,11 +91,14 @@ final class ThirdPartyDocGenNormalizerTest extends KernelTestCase
->setName('test')
->setCivility((new Civility())->setName(['fr' => 'Monsieur'])->setAbbreviation(['fr' => 'M.']))
->setEmail('info@cl.coop')
->setTelephone('+32486123456')
->addTypesAndCategories('kind')
->addTypesAndCategories((new ThirdPartyCategory())->setName(['fr' => 'category']));
$actual = $this->normalizer->normalize($thirdparty, 'docgen', ['groups' => ['docgen:read']]);
$this->assertIsArray($actual);
$this->assertArrayHasKey('telephone', $actual);
$this->assertEquals('+32486123456', $actual['telephone']);
}
}