mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 07:33:50 +00:00
[generic doc] add doc provider and renderer for evaluation document
This commit is contained in:
@@ -73,7 +73,7 @@ class Manager
|
||||
): iterable {
|
||||
['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($accompanyingPeriod, $startDate, $endDate, $content, $origin);
|
||||
|
||||
$runSql = "{$sql} LIMIT ? OFFSET ?";
|
||||
$runSql = "{$sql} ORDER BY doc_date DESC LIMIT ? OFFSET ?";
|
||||
$runParams = [...$params, ...[$limit, $offset]];
|
||||
$runTypes = [...$types, ...[Types::INTEGER, Types::INTEGER]];
|
||||
|
||||
|
@@ -63,9 +63,10 @@ class AccompanyingCourseDocumentProviderTest extends KernelTestCase
|
||||
|
||||
['sql' => $sql, 'params' => $params, 'types' => $types] = (new FetchQueryToSqlBuilder())->toSql($query);
|
||||
|
||||
$this->entityManager->getConnection()->executeQuery($sql, $params, $types);
|
||||
$nb = $this->entityManager->getConnection()->executeQuery('SELECT COUNT(*) FROM ('.$sql.') AS sq', $params, $types)
|
||||
->fetchOne();
|
||||
|
||||
self::assertTrue(true, "test that no errors occurs");
|
||||
self::assertIsInt($nb);
|
||||
}
|
||||
|
||||
public function provideSearchArguments(): iterable
|
||||
|
Reference in New Issue
Block a user