Fixed tests and updated changelog

This commit is contained in:
Alejandro Celaya
2021-12-14 22:30:09 +01:00
parent 1ff241411b
commit 8c14526f85
3 changed files with 23 additions and 4 deletions

View File

@@ -128,7 +128,7 @@ class ShortUrlRepositoryTest extends DatabaseTestCase
self::assertCount(1, $this->repo->findList(2, 2));
$result = $this->repo->findList(null, null, null, [], ShortUrlsOrdering::fromRawData([
'orderBy' => ['visits' => 'DESC'],
'orderBy' => 'visits-DESC',
]));
self::assertCount(3, $result);
self::assertSame($bar, $result[0]);
@@ -156,7 +156,7 @@ class ShortUrlRepositoryTest extends DatabaseTestCase
$this->getEntityManager()->flush();
$result = $this->repo->findList(null, null, null, [], ShortUrlsOrdering::fromRawData([
'orderBy' => ['longUrl' => 'ASC'],
'orderBy' => 'longUrl-ASC',
]));
self::assertCount(count($urls), $result);

View File

@@ -73,7 +73,7 @@ class CorsTest extends ApiTestCase
{
yield 'invalid route' => ['/foo/bar', 'GET,POST,PUT,PATCH,DELETE'];
yield 'short URLs route' => ['/short-urls', 'GET,POST'];
yield 'tags route' => ['/tags', 'GET,POST,PUT,DELETE'];
yield 'tags route' => ['/tags', 'GET,PUT,DELETE'];
yield 'health route' => ['/health', 'GET'];
}
}