aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-09-26 22:38:09 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-26 22:38:09 +0200
commit89a3d36c3e680bcbaf361ff60ca96b3e79f42968 (patch)
tree698ca3674ba49ac5e41d646fe9d907786c07050e /tests
parent86d713478b25816340aebeeacca704f3aeee17af (diff)
Fix search using user queries (#5669)
fix https://github.com/FreshRSS/FreshRSS/issues/5668
Diffstat (limited to 'tests')
-rw-r--r--tests/app/Models/UserQueryTest.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/app/Models/UserQueryTest.php b/tests/app/Models/UserQueryTest.php
index aa66b1447..668327139 100644
--- a/tests/app/Models/UserQueryTest.php
+++ b/tests/app/Models/UserQueryTest.php
@@ -19,14 +19,6 @@ class UserQueryTest extends PHPUnit\Framework\TestCase {
self::assertEquals('favorite', $user_query->getGetType());
}
- public function test__construct_whenCategoryQueryAndNoDao_throwsException(): void {
- $this->expectException(FreshRSS_DAO_Exception::class);
- $this->expectExceptionMessage('Category DAO is not loaded in UserQuery');
-
- $query = array('get' => 'c_1');
- new FreshRSS_UserQuery($query);
- }
-
public function test__construct_whenCategoryQuery_storesCategoryParameters(): void {
$category_name = 'some category name';
/** @var FreshRSS_Category&PHPUnit\Framework\MockObject\MockObject */
@@ -47,14 +39,6 @@ class UserQueryTest extends PHPUnit\Framework\TestCase {
self::assertEquals('category', $user_query->getGetType());
}
- public function test__construct_whenFeedQueryAndNoDao_throwsException(): void {
- $this->expectException(FreshRSS_DAO_Exception::class);
- $this->expectExceptionMessage('Feed DAO is not loaded in UserQuery');
-
- $query = array('get' => 'f_1');
- new FreshRSS_UserQuery($query);
- }
-
public function test__construct_whenFeedQuery_storesFeedParameters(): void {
$feed_name = 'some feed name';
/** @var FreshRSS_Feed&PHPUnit\Framework\MockObject\MockObject */