mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix docgen / PersonContextTest: there should not be any scope shown when only one scope is added.
This commit is contained in:
parent
ad1e5ecc95
commit
410aa7098a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user