Fix docgen / PersonContextTest: there should not be any scope shown when only one scope is added.

This commit is contained in:
Julien Fastré 2023-08-25 22:34:24 +02:00
parent ad1e5ecc95
commit 410aa7098a
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -292,7 +292,7 @@ final class PersonContextTest extends KernelTestCase
$em->persist(Argument::type(PersonDocument::class))
->should(static function ($calls, $object, $method) use ($scope) {
if (1 !== count($calls)) {
throw new FailedPredictionException(sprintf('the persist should be called exactly once, %d receivved', count($calls)));
throw new FailedPredictionException(sprintf('the persist should be called exactly once, %d received', count($calls)));
}
/** @var PersonDocument $personDocument */
@ -315,7 +315,7 @@ final class PersonContextTest extends KernelTestCase
$em->reveal(),
);
$personContext->buildPublicForm($this->buildFormBuilder(true), $docGen, $person);
$personContext->buildPublicForm($this->buildFormBuilder(false), $docGen, $person);
$personContext->storeGenerated(
$docGen,