diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-10-16 13:34:59 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-10-27 19:41:38 +0100 |
commit | c2cd15dac2bfaebe6d32f7649fbdedc07400fa08 (patch) | |
tree | c450feedcf731a5fc74ea26375e6e4861b545f37 /tests | |
parent | 977db7eabc30cd9d84f22330a114cb9d904cb514 (diff) | |
download | Shaarli-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.php | 2 | ||||
-rw-r--r-- | tests/utils/FakeApplicationUtils.php | 2 | ||||
-rw-r--r-- | tests/utils/ReferenceHistory.php | 2 |
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 |
2 | namespace Shaarli; | 2 | namespace Shaarli\Helper; |
3 | 3 | ||
4 | use Shaarli\Config\ConfigManager; | 4 | use Shaarli\Config\ConfigManager; |
5 | use Shaarli\FakeApplicationUtils; | ||
5 | 6 | ||
6 | require_once 'tests/utils/FakeApplicationUtils.php'; | 7 | require_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 | ||
3 | namespace Shaarli; | 3 | namespace Shaarli\Helper; |
4 | 4 | ||
5 | use Exception; | 5 | use Exception; |
6 | use Shaarli\Exceptions\IOException; | 6 | use 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 @@ | |||
4 | namespace Shaarli\Security; | 4 | namespace Shaarli\Security; |
5 | 5 | ||
6 | use Psr\Log\LoggerInterface; | 6 | use Psr\Log\LoggerInterface; |
7 | use Shaarli\FileUtils; | 7 | use Shaarli\Helper\FileUtils; |
8 | use Shaarli\TestCase; | 8 | use 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 | ||
3 | namespace Shaarli; | 3 | namespace Shaarli; |
4 | 4 | ||
5 | use 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 | ||
3 | use Shaarli\FileUtils; | 3 | use Shaarli\Helper\FileUtils; |
4 | use Shaarli\History; | 4 | use Shaarli\History; |
5 | 5 | ||
6 | /** | 6 | /** |