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

github.com/nextcloud/privacy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-04-04 13:36:04 +0300
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-04-04 14:42:16 +0300
commit944cc5f963d804915b88fd801364e5c78c2f86ae (patch)
tree3d44193fffec9fe9275b5817d9b493bc47346c78
parent7f74527020d3221c37f28a648593d6b38af64eab (diff)
Update tests
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--tests/Unit/Controller/PageControllerTest.php4
-rw-r--r--tests/bootstrap.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/Unit/Controller/PageControllerTest.php b/tests/Unit/Controller/PageControllerTest.php
index cfbe78f..08f8905 100644
--- a/tests/Unit/Controller/PageControllerTest.php
+++ b/tests/Unit/Controller/PageControllerTest.php
@@ -2,13 +2,13 @@
namespace OCA\Privacy\Tests\Unit\Controller;
-use PHPUnit_Framework_TestCase;
+use PHPUnit\Framework\TestCase;
use OCP\AppFramework\Http\TemplateResponse;
use OCA\Privacy\Controller\PageController;
-class PageControllerTest extends PHPUnit_Framework_TestCase {
+class PageControllerTest extends TestCase {
private $controller;
private $userId = 'john';
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index 4f15097..550e061 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -12,7 +12,7 @@ require_once __DIR__.'/../../../lib/base.php';
// Fix for "Autoload path not allowed: .../privacy/tests/testcase.php"
\OC_App::loadApp('privacy');
-if (!class_exists('PHPUnit_Framework_TestCase')) {
+if (!class_exists('\PHPUnit\Framework\TestCase')) {
require_once('PHPUnit/Autoload.php');
}