mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-13 19:07:11 -04:00
Update dev dependencies (#4993)
Related to https://github.com/FreshRSS/FreshRSS/pull/4991 Required a few changes in code to pass the tests
This commit is contained in:
committed by
GitHub
parent
3fb8ab8eb5
commit
1d9d4e3e3c
@@ -34,7 +34,7 @@ class UserQueryTest extends PHPUnit\Framework\TestCase {
|
||||
->method('name')
|
||||
->withAnyParameters()
|
||||
->willReturn($category_name);
|
||||
$cat_dao = $this->createMock('FreshRSS_Searchable');
|
||||
$cat_dao = $this->createMock('FreshRSS_CategoryDAO');
|
||||
$cat_dao->expects($this->atLeastOnce())
|
||||
->method('searchById')
|
||||
->withAnyParameters()
|
||||
@@ -60,7 +60,7 @@ class UserQueryTest extends PHPUnit\Framework\TestCase {
|
||||
->method('name')
|
||||
->withAnyParameters()
|
||||
->willReturn($feed_name);
|
||||
$feed_dao = $this->createMock('FreshRSS_Searchable');
|
||||
$feed_dao = $this->createMock('FreshRSS_FeedDAO');
|
||||
$feed_dao->expects($this->atLeastOnce())
|
||||
->method('searchById')
|
||||
->withAnyParameters()
|
||||
@@ -160,7 +160,7 @@ class UserQueryTest extends PHPUnit\Framework\TestCase {
|
||||
|
||||
public function testIsDeprecated_whenCategoryExists_returnFalse() {
|
||||
$cat = $this->createMock('FreshRSS_Category');
|
||||
$cat_dao = $this->createMock('FreshRSS_Searchable');
|
||||
$cat_dao = $this->createMock('FreshRSS_CategoryDAO');
|
||||
$cat_dao->expects($this->atLeastOnce())
|
||||
->method('searchById')
|
||||
->withAnyParameters()
|
||||
@@ -171,7 +171,7 @@ class UserQueryTest extends PHPUnit\Framework\TestCase {
|
||||
}
|
||||
|
||||
public function testIsDeprecated_whenCategoryDoesNotExist_returnTrue() {
|
||||
$cat_dao = $this->createMock('FreshRSS_Searchable');
|
||||
$cat_dao = $this->createMock('FreshRSS_CategoryDAO');
|
||||
$cat_dao->expects($this->atLeastOnce())
|
||||
->method('searchById')
|
||||
->withAnyParameters()
|
||||
@@ -183,7 +183,7 @@ class UserQueryTest extends PHPUnit\Framework\TestCase {
|
||||
|
||||
public function testIsDeprecated_whenFeedExists_returnFalse() {
|
||||
$feed = $this->createMock('FreshRSS_Feed', array(), array('', false));
|
||||
$feed_dao = $this->createMock('FreshRSS_Searchable');
|
||||
$feed_dao = $this->createMock('FreshRSS_FeedDAO');
|
||||
$feed_dao->expects($this->atLeastOnce())
|
||||
->method('searchById')
|
||||
->withAnyParameters()
|
||||
@@ -194,7 +194,7 @@ class UserQueryTest extends PHPUnit\Framework\TestCase {
|
||||
}
|
||||
|
||||
public function testIsDeprecated_whenFeedDoesNotExist_returnTrue() {
|
||||
$feed_dao = $this->createMock('FreshRSS_Searchable');
|
||||
$feed_dao = $this->createMock('FreshRSS_FeedDAO');
|
||||
$feed_dao->expects($this->atLeastOnce())
|
||||
->method('searchById')
|
||||
->withAnyParameters()
|
||||
|
||||
Reference in New Issue
Block a user