mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +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))
|
$em->persist(Argument::type(PersonDocument::class))
|
||||||
->should(static function ($calls, $object, $method) use ($scope) {
|
->should(static function ($calls, $object, $method) use ($scope) {
|
||||||
if (1 !== count($calls)) {
|
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 */
|
/** @var PersonDocument $personDocument */
|
||||||
@ -315,7 +315,7 @@ final class PersonContextTest extends KernelTestCase
|
|||||||
$em->reveal(),
|
$em->reveal(),
|
||||||
);
|
);
|
||||||
|
|
||||||
$personContext->buildPublicForm($this->buildFormBuilder(true), $docGen, $person);
|
$personContext->buildPublicForm($this->buildFormBuilder(false), $docGen, $person);
|
||||||
|
|
||||||
$personContext->storeGenerated(
|
$personContext->storeGenerated(
|
||||||
$docGen,
|
$docGen,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user