bootFaker(); $this->bootDatabase(); } public function testFindByIdsWillReturnOnlyIdsWhichExists(): void { $user = $this->createUser(1); /** * @var UserRepository $userRepository */ $userRepository = parent::getContainer()->get(UserRepository::class); $result = $userRepository->findByIds([1, /* non existent ids */ 2]); $this->assertCount(1, $result); $this->assertSame(1, $result[1]->id); } }