locator = new AppLocator(); } public function testGetAppPath() { $this->assertSame(\OC_App::getAppPath('files'), $this->locator->getAppPath('files')); } public function testGetAppPathNotExistentApp() { $this->expectException(\Exception::class); $this->expectExceptionMessage('App not found'); $this->locator->getAppPath('aTotallyNotExistingApp'); } public function testGetAllApps() { $this->assertSame(\OC_App::getAllApps(), $this->locator->getAllApps()); } }