Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Merge ef1367c into b9974ec
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Mar 26, 2020
2 parents b9974ec + ef1367c commit 88453d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/Model/ModelManager.php
Expand Up @@ -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,
];
}

Expand Down
5 changes: 5 additions & 0 deletions tests/WebTest/Admin/ContentAdminTest.php
Expand Up @@ -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")'));
}
Expand Down

0 comments on commit 88453d4

Please sign in to comment.