aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-03-31 09:28:22 +0200
committerjld3103 <jld3103yt@gmail.com>2023-04-07 09:49:42 +0200
commitb153340b6292c0790666e0542677bcf47f2e9b59 (patch)
treeb13fb2b10cc38833a2a05ec44a410188a571c6a6 /tests/lib
parent012624743917cf9388f2abd33760a50d83d497e9 (diff)
downloadnextcloud-server-b153340b6292c0790666e0542677bcf47f2e9b59.tar.gz
nextcloud-server-b153340b6292c0790666e0542677bcf47f2e9b59.zip
Add type hints for mappers
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Updater/ChangesCheckTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/Updater/ChangesCheckTest.php b/tests/lib/Updater/ChangesCheckTest.php
index 02da6d08401..e96406622f4 100644
--- a/tests/lib/Updater/ChangesCheckTest.php
+++ b/tests/lib/Updater/ChangesCheckTest.php
@@ -28,7 +28,7 @@ namespace Test\Updater;
use OC\Updater\ChangesCheck;
use OC\Updater\ChangesMapper;
-use OC\Updater\ChangesResult;
+use OC\Updater\Changes;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
@@ -88,7 +88,7 @@ class ChangesCheckTest extends TestCase {
public function testCacheResultInsert() {
$version = '13.0.4';
- $entry = $this->createMock(ChangesResult::class);
+ $entry = $this->createMock(Changes::class);
$entry->expects($this->exactly(2))
->method('__call')
->withConsecutive(['getVersion'], ['setVersion', [$version]])
@@ -104,7 +104,7 @@ class ChangesCheckTest extends TestCase {
public function testCacheResultUpdate() {
$version = '13.0.4';
- $entry = $this->createMock(ChangesResult::class);
+ $entry = $this->createMock(Changes::class);
$entry->expects($this->once())
->method('__call')
->willReturn($version);
@@ -306,7 +306,7 @@ class ChangesCheckTest extends TestCase {
*/
public function testQueryChangesServer(string $etag) {
$uri = 'https://changes.nextcloud.server/?13.0.5';
- $entry = $this->createMock(ChangesResult::class);
+ $entry = $this->createMock(Changes::class);
$entry->expects($this->any())
->method('__call')
->willReturn($etag);
@@ -370,7 +370,7 @@ class ChangesCheckTest extends TestCase {
$this->expectException(DoesNotExistException::class);
$mocker->willThrowException(new DoesNotExistException('Changes info is not present'));
} else {
- $entry = $this->createMock(ChangesResult::class);
+ $entry = $this->createMock(Changes::class);
$entry->expects($this->once())
->method('__call')
->with('getData')
@@ -386,7 +386,7 @@ class ChangesCheckTest extends TestCase {
}
public function testGetChangesForVersionEmptyData() {
- $entry = $this->createMock(ChangesResult::class);
+ $entry = $this->createMock(Changes::class);
$entry->expects($this->once())
->method('__call')
->with('getData')