diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-03-02 13:24:06 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-03-02 13:24:06 +0100 |
commit | 5ce9e73bad3d80657ab2b13f3cc5f91f3033a03f (patch) | |
tree | f869656d3fbe0e9e1c470c8ecdbe92245fabc6b2 /tests | |
parent | 72cc8270cdd0f1c95ef1708be81cf4ac424dca47 (diff) | |
download | nextcloud-server-5ce9e73bad3d80657ab2b13f3cc5f91f3033a03f.tar.gz nextcloud-server-5ce9e73bad3d80657ab2b13f3cc5f91f3033a03f.zip |
Add message for DoesNotExistException
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Updater/ChangesCheckTest.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lib/Updater/ChangesCheckTest.php b/tests/lib/Updater/ChangesCheckTest.php index 30cb9df2956..1bc8b47e58f 100644 --- a/tests/lib/Updater/ChangesCheckTest.php +++ b/tests/lib/Updater/ChangesCheckTest.php @@ -380,4 +380,21 @@ class ChangesCheckTest extends TestCase { $this->assertTrue(isset($data['whatsNew']['en']['regular'])); $this->assertTrue(isset($data['changelogURL'])); } + + public function testGetChangesForVersionEmptyData() { + $entry = $this->createMock(ChangesResult::class); + $entry->expects($this->once()) + ->method('__call') + ->with('getData') + ->willReturn(''); + + $this->mapper->expects($this->once()) + ->method('getChanges') + ->with('13.0.7') + ->willReturn($entry); + + $this->expectException(DoesNotExistException::class); + /** @noinspection PhpUnhandledExceptionInspection */ + $this->checker->getChangesForVersion('13.0.7'); + } } |