aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-16 13:34:59 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-27 19:41:38 +0100
commitc2cd15dac2bfaebe6d32f7649fbdedc07400fa08 (patch)
treec450feedcf731a5fc74ea26375e6e4861b545f37 /tests
parent977db7eabc30cd9d84f22330a114cb9d904cb514 (diff)
downloadShaarli-c2cd15dac2bfaebe6d32f7649fbdedc07400fa08.tar.gz
Shaarli-c2cd15dac2bfaebe6d32f7649fbdedc07400fa08.tar.zst
Shaarli-c2cd15dac2bfaebe6d32f7649fbdedc07400fa08.zip
Move utils classes to Shaarli\Helper namespace and folder
Diffstat (limited to 'tests')
-rw-r--r--tests/helper/ApplicationUtilsTest.php (renamed from tests/ApplicationUtilsTest.php)3
-rw-r--r--tests/helper/FileUtilsTest.php (renamed from tests/FileUtilsTest.php)2
-rw-r--r--tests/security/BanManagerTest.php2
-rw-r--r--tests/utils/FakeApplicationUtils.php2
-rw-r--r--tests/utils/ReferenceHistory.php2
5 files changed, 7 insertions, 4 deletions
diff --git a/tests/ApplicationUtilsTest.php b/tests/helper/ApplicationUtilsTest.php
index ac46cbf1..654857b9 100644
--- a/tests/ApplicationUtilsTest.php
+++ b/tests/helper/ApplicationUtilsTest.php
@@ -1,7 +1,8 @@
1<?php 1<?php
2namespace Shaarli; 2namespace Shaarli\Helper;
3 3
4use Shaarli\Config\ConfigManager; 4use Shaarli\Config\ConfigManager;
5use Shaarli\FakeApplicationUtils;
5 6
6require_once 'tests/utils/FakeApplicationUtils.php'; 7require_once 'tests/utils/FakeApplicationUtils.php';
7 8
diff --git a/tests/FileUtilsTest.php b/tests/helper/FileUtilsTest.php
index 3384504a..948e46d1 100644
--- a/tests/FileUtilsTest.php
+++ b/tests/helper/FileUtilsTest.php
@@ -1,6 +1,6 @@
1<?php 1<?php
2 2
3namespace Shaarli; 3namespace Shaarli\Helper;
4 4
5use Exception; 5use Exception;
6use Shaarli\Exceptions\IOException; 6use Shaarli\Exceptions\IOException;
diff --git a/tests/security/BanManagerTest.php b/tests/security/BanManagerTest.php
index 22aa8666..29d2791b 100644
--- a/tests/security/BanManagerTest.php
+++ b/tests/security/BanManagerTest.php
@@ -4,7 +4,7 @@
4namespace Shaarli\Security; 4namespace Shaarli\Security;
5 5
6use Psr\Log\LoggerInterface; 6use Psr\Log\LoggerInterface;
7use Shaarli\FileUtils; 7use Shaarli\Helper\FileUtils;
8use Shaarli\TestCase; 8use Shaarli\TestCase;
9 9
10/** 10/**
diff --git a/tests/utils/FakeApplicationUtils.php b/tests/utils/FakeApplicationUtils.php
index de83d598..d5289ede 100644
--- a/tests/utils/FakeApplicationUtils.php
+++ b/tests/utils/FakeApplicationUtils.php
@@ -2,6 +2,8 @@
2 2
3namespace Shaarli; 3namespace Shaarli;
4 4
5use Shaarli\Helper\ApplicationUtils;
6
5/** 7/**
6 * Fake ApplicationUtils class to avoid HTTP requests 8 * Fake ApplicationUtils class to avoid HTTP requests
7 */ 9 */
diff --git a/tests/utils/ReferenceHistory.php b/tests/utils/ReferenceHistory.php
index 516c9f51..aed5d2cf 100644
--- a/tests/utils/ReferenceHistory.php
+++ b/tests/utils/ReferenceHistory.php
@@ -1,6 +1,6 @@
1<?php 1<?php
2 2
3use Shaarli\FileUtils; 3use Shaarli\Helper\FileUtils;
4use Shaarli\History; 4use Shaarli\History;
5 5
6/** 6/**