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
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-06-04 11:57:09 +0300
committerJoas Schilling <coding@schilljs.com>2021-06-04 11:57:09 +0300
commit181aab416a5f3032034273b5eaa2eb6654982482 (patch)
tree11e6655a4921282cebe9dbab8c3991e9992182ae /tests
parent46dbc8fa988176e4a431cafcbae6674fb613c899 (diff)
Fix warnings about logException
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Bootstrap/CoordinatorTest.php2
-rw-r--r--tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php12
-rw-r--r--tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php4
-rw-r--r--tests/lib/CapabilitiesManagerTest.php2
-rw-r--r--tests/lib/Collaboration/Resources/ProviderManagerTest.php4
5 files changed, 12 insertions, 12 deletions
diff --git a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
index 05442455cb7..d6ceefa4268 100644
--- a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
+++ b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
@@ -89,7 +89,7 @@ class CoordinatorTest extends TestCase {
->with(\OCA\Settings\AppInfo\Application::class)
->willThrowException(new QueryException(""));
$this->logger->expects($this->once())
- ->method('logException');
+ ->method('error');
$this->coordinator->bootApp($appId);
}
diff --git a/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php b/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
index f97ac92e887..067e9a09673 100644
--- a/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
+++ b/tests/lib/AppFramework/Bootstrap/RegistrationContextTest.php
@@ -61,7 +61,7 @@ class RegistrationContextTest extends TestCase {
->method('registerCapability')
->with($name);
$this->logger->expects($this->never())
- ->method('logException');
+ ->method('error');
$this->context->for('myapp')->registerCapability($name);
$this->context->delegateCapabilityRegistrations([
@@ -77,7 +77,7 @@ class RegistrationContextTest extends TestCase {
->method('addServiceListener')
->with($event, $service, 0);
$this->logger->expects($this->never())
- ->method('logException');
+ ->method('error');
$this->context->for('myapp')->registerEventListener($event, $service);
$this->context->delegateEventListenerRegistrations($dispatcher);
@@ -99,7 +99,7 @@ class RegistrationContextTest extends TestCase {
->method('registerService')
->with($service, $factory, $shared);
$this->logger->expects($this->never())
- ->method('logException');
+ ->method('error');
$this->context->for('myapp')->registerService($service, $factory, $shared);
$this->context->delegateContainerRegistrations([
@@ -118,7 +118,7 @@ class RegistrationContextTest extends TestCase {
->method('registerAlias')
->with($alias, $target);
$this->logger->expects($this->never())
- ->method('logException');
+ ->method('error');
$this->context->for('myapp')->registerServiceAlias($alias, $target);
$this->context->delegateContainerRegistrations([
@@ -137,7 +137,7 @@ class RegistrationContextTest extends TestCase {
->method('registerParameter')
->with($name, $value);
$this->logger->expects($this->never())
- ->method('logException');
+ ->method('error');
$this->context->for('myapp')->registerParameter($name, $value);
$this->context->delegateContainerRegistrations([
@@ -155,7 +155,7 @@ class RegistrationContextTest extends TestCase {
->method('registerMiddleware')
->with($name);
$this->logger->expects($this->never())
- ->method('logException');
+ ->method('error');
$this->context->for('myapp')->registerMiddleware($name);
$this->context->delegateMiddlewareRegistrations([
diff --git a/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php b/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
index 076f6588d94..8f55f90d377 100644
--- a/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
+++ b/tests/lib/AppFramework/Middleware/Security/SecurityMiddlewareTest.php
@@ -506,7 +506,7 @@ class SecurityMiddlewareTest extends \Test\TestCase {
->willReturn('http://localhost/nextcloud/index.php/login?redirect_url=nextcloud/index.php/apps/specialapp');
$this->logger
->expects($this->once())
- ->method('logException');
+ ->method('debug');
$response = $this->middleware->afterException(
$this->controller,
'test',
@@ -576,7 +576,7 @@ class SecurityMiddlewareTest extends \Test\TestCase {
$this->middleware = $this->getMiddleware(false, false, false);
$this->logger
->expects($this->once())
- ->method('logException');
+ ->method('debug');
$response = $this->middleware->afterException(
$this->controller,
'test',
diff --git a/tests/lib/CapabilitiesManagerTest.php b/tests/lib/CapabilitiesManagerTest.php
index 4909272c4a8..ec07f3dfa36 100644
--- a/tests/lib/CapabilitiesManagerTest.php
+++ b/tests/lib/CapabilitiesManagerTest.php
@@ -149,7 +149,7 @@ class CapabilitiesManagerTest extends TestCase {
});
$this->logger->expects($this->once())
- ->method('logException');
+ ->method('error');
$res = $this->manager->getCapabilities();
diff --git a/tests/lib/Collaboration/Resources/ProviderManagerTest.php b/tests/lib/Collaboration/Resources/ProviderManagerTest.php
index 19a34962a56..01e45de9fdf 100644
--- a/tests/lib/Collaboration/Resources/ProviderManagerTest.php
+++ b/tests/lib/Collaboration/Resources/ProviderManagerTest.php
@@ -82,7 +82,7 @@ class ProviderManagerTest extends TestCase {
->willThrowException(new QueryException('A meaningful error message'));
$this->logger->expects($this->once())
- ->method('logException');
+ ->method('error');
$this->providerManager->registerResourceProvider('InvalidResourceProvider');
$resourceProviders = $this->providerManager->getResourceProviders();
@@ -101,7 +101,7 @@ class ProviderManagerTest extends TestCase {
->willReturn($this->createMock(ResourceProvider::class));
$this->logger->expects($this->once())
- ->method('logException');
+ ->method('error');
$this->providerManager->registerResourceProvider('InvalidResourceProvider');
$this->providerManager->registerResourceProvider(ResourceProvider::class);