diff --git a/src/Model/ModelManager.php b/src/Model/ModelManager.php index 72a6b35e..887aa5c2 100644 --- a/src/Model/ModelManager.php +++ b/src/Model/ModelManager.php @@ -411,9 +411,8 @@ public function getPaginationParameters(DatagridInterface $datagrid, $page) public function getDefaultSortValues($class) { return [ - '_sort_order' => 'ASC', - '_sort_by' => $this->getModelIdentifier($class), '_page' => 1, + '_per_page' => 25, ]; } diff --git a/tests/WebTest/Admin/ContentAdminTest.php b/tests/WebTest/Admin/ContentAdminTest.php index 2b15d750..3c6380b2 100644 --- a/tests/WebTest/Admin/ContentAdminTest.php +++ b/tests/WebTest/Admin/ContentAdminTest.php @@ -29,6 +29,11 @@ public function testContentList(): void $crawler = $this->client->request('GET', '/admin/fixtures/app/content/list'); $res = $this->client->getResponse(); + $exceptionMessage = $crawler->filter('.exception-message'); + if ($exceptionMessage->count() > 0) { + echo $exceptionMessage->text(); + } + $this->assertResponseSuccess($res); $this->assertCount(1, $crawler->filter('html:contains("Content 1")')); }