Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/App/AppStore/Bundles/BundleFetcherTest.php')
-rw-r--r--tests/lib/App/AppStore/Bundles/BundleFetcherTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/App/AppStore/Bundles/BundleFetcherTest.php b/tests/lib/App/AppStore/Bundles/BundleFetcherTest.php
index 27384953d3f..f453fbcb59a 100644
--- a/tests/lib/App/AppStore/Bundles/BundleFetcherTest.php
+++ b/tests/lib/App/AppStore/Bundles/BundleFetcherTest.php
@@ -36,7 +36,7 @@ class BundleFetcherTest extends TestCase {
/** @var BundleFetcher */
private $bundleFetcher;
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$this->l10n = $this->createMock(IL10N::class);
@@ -69,11 +69,11 @@ class BundleFetcherTest extends TestCase {
$this->assertEquals(new GroupwareBundle($this->l10n), $this->bundleFetcher->getBundleByIdentifier('GroupwareBundle'));
}
- /**
- * @expectedException \BadMethodCallException
- * @expectedExceptionMessage Bundle with specified identifier does not exist
- */
+
public function testGetBundleByIdentifierWithException() {
+ $this->expectException(\BadMethodCallException::class);
+ $this->expectExceptionMessage('Bundle with specified identifier does not exist');
+
$this->bundleFetcher->getBundleByIdentifier('NotExistingBundle');
}