File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 181181 <file src =" src/Test/Controller/NewActionTestCase.php" >
182182 <InvalidReturnStatement >
183183 <code ><![CDATA[ $entity]]> </code >
184+ <code ><![CDATA[ $this->findAllEntities($this->controllerUnderTest()::getEntityFqcn())]]> </code >
184185 <code ><![CDATA[ $this->findEntity(
185186 $this->controllerUnderTest()::getEntityFqcn(),
186187 $id,
187188 )]]> </code >
188189 </InvalidReturnStatement >
189190 <InvalidReturnType >
190191 <code ><![CDATA[ TEntity]]> </code >
192+ <code ><![CDATA[ iterable<TEntity>]]> </code >
191193 </InvalidReturnType >
192194 </file >
193195 <file src =" src/Translation/EasyAdminTranslationMessage.php" >
Original file line number Diff line number Diff line change @@ -196,6 +196,12 @@ protected function findEntityForControllerUnderTest(int|string|object $id): obje
196196 );
197197 }
198198
199+ /** @return iterable<TEntity> */
200+ protected function findAllEntitiesForControllerUnderTest (): iterable
201+ {
202+ return $ this ->findAllEntities ($ this ->controllerUnderTest ()::getEntityFqcn ());
203+ }
204+
199205 /** @return TEntity */
200206 protected function getEntityForControllerUnderTest (int |string |object $ id ): object
201207 {
You can’t perform that action at this time.
0 commit comments