EasyAdmin Version: >=4.21.0
Describe the bug
ErrorException: An exception has been thrown during the rendering of a template ("EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator::setController(): Argument #1 ($crudControllerFqcn) must be of type string, null given, called in /home/runner/work/user/user/vendor/twig/twig/src/Extension/CoreExtension.php on line 1871").
To Reproduce
public function testIndexPage2(): void
{
SampleFactory::createMany(5);
// retrieve the test user
$testUser = UserFactory::createOne();
// simulate $testUser being logged in
$this->client->loginUser($testUser->_real());
// this examples doesn't use security; in your application you may
// need to ensure that the user is logged before the test
$this->client->request(Request::METHOD_GET, $this->generateIndexUrl());
static::assertResponseIsSuccessful();
}
(OPTIONAL) Additional context
Pretty URLs are on, I have a second identical test just pointing to a different entity/crud where this does not fail, and unlike #6715 this stops working with 4.21.0, though it seems very similar.
| Version |
Success |
| 4.20.8 |
✅ |
| 4.21.0 |
❌ |
| 4.21.1 |
❌ |
| 4.22.0 |
❌ |