We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb366e1 commit fcbe120Copy full SHA for fcbe120
app/tests/AdminTest.php
@@ -110,7 +110,8 @@ protected function doTestReachableAdminRoutes($admin)
110
111
// if an ID is required, try and find a document to test
112
if (isset($requirements['id'])) {
113
- if ($document = $this->dm->getRepository($class)->findOneBy(array())) {
+ $document = $admin->createQuery('list')->execute()->first();
114
+ if ($document) {
115
$node = $this->dm->getNodeForDocument($document);
116
$routeParams['id'] = $node->getPath();
117
} else {
0 commit comments