summaryrefslogtreecommitdiffstats
path: root/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php')
-rw-r--r--tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php b/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php
index 333b29f826c..cf5899b663b 100644
--- a/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php
+++ b/tests/lib/IntegrityCheck/Helpers/AppLocatorTest.php
@@ -28,7 +28,7 @@ class AppLocatorTest extends TestCase {
/** @var AppLocator */
private $locator;
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$this->locator = new AppLocator();
}
@@ -37,11 +37,11 @@ class AppLocatorTest extends TestCase {
$this->assertSame(\OC_App::getAppPath('files'), $this->locator->getAppPath('files'));
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage App not found
- */
+
public function testGetAppPathNotExistentApp() {
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('App not found');
+
$this->locator->getAppPath('aTotallyNotExistingApp');
}