diff options
author | VirtualTam <virtualtam@flibidi.net> | 2018-12-04 23:17:23 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2019-01-12 23:11:19 +0100 |
commit | 9585441734924cb8ece3924afa5fefb6aa2e2604 (patch) | |
tree | 9e62a09ab770101172054136d0e6d489601bc862 /tests | |
parent | e1850388348d4bfdf463a5aa341bc470da79cf32 (diff) | |
download | Shaarli-9585441734924cb8ece3924afa5fefb6aa2e2604.tar.gz Shaarli-9585441734924cb8ece3924afa5fefb6aa2e2604.tar.zst Shaarli-9585441734924cb8ece3924afa5fefb6aa2e2604.zip |
namespacing: add plugin tests to \Shaarli\Plugin\[...]
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/plugins/PluginAddlinkTest.php | 1 | ||||
-rw-r--r-- | tests/plugins/PluginArchiveorgTest.php | 3 | ||||
-rw-r--r-- | tests/plugins/PluginIssoTest.php | 4 | ||||
-rw-r--r-- | tests/plugins/PluginMarkdownTest.php | 4 | ||||
-rw-r--r-- | tests/plugins/PluginPlayvideosTest.php | 4 | ||||
-rw-r--r-- | tests/plugins/PluginPubsubhubbubTest.php | 5 | ||||
-rw-r--r-- | tests/plugins/PluginQrcodeTest.php | 5 | ||||
-rw-r--r-- | tests/plugins/PluginWallabagTest.php | 6 | ||||
-rw-r--r-- | tests/plugins/WallabagInstanceTest.php | 5 |
9 files changed, 22 insertions, 15 deletions
diff --git a/tests/plugins/PluginAddlinkTest.php b/tests/plugins/PluginAddlinkTest.php index e0a0107d..d052f8b9 100644 --- a/tests/plugins/PluginAddlinkTest.php +++ b/tests/plugins/PluginAddlinkTest.php | |||
@@ -1,4 +1,5 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Addlink; | ||
2 | 3 | ||
3 | use Shaarli\Plugin\PluginManager; | 4 | use Shaarli\Plugin\PluginManager; |
4 | use Shaarli\Router; | 5 | use Shaarli\Router; |
diff --git a/tests/plugins/PluginArchiveorgTest.php b/tests/plugins/PluginArchiveorgTest.php index d06bfa59..510288bb 100644 --- a/tests/plugins/PluginArchiveorgTest.php +++ b/tests/plugins/PluginArchiveorgTest.php | |||
@@ -1,4 +1,5 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Archiveorg; | ||
2 | 3 | ||
3 | /** | 4 | /** |
4 | * PluginArchiveorgTest.php | 5 | * PluginArchiveorgTest.php |
@@ -12,7 +13,7 @@ require_once 'plugins/archiveorg/archiveorg.php'; | |||
12 | * Class PluginArchiveorgTest | 13 | * Class PluginArchiveorgTest |
13 | * Unit test for the archiveorg plugin | 14 | * Unit test for the archiveorg plugin |
14 | */ | 15 | */ |
15 | class PluginArchiveorgTest extends PHPUnit_Framework_TestCase | 16 | class PluginArchiveorgTest extends \PHPUnit\Framework\TestCase |
16 | { | 17 | { |
17 | /** | 18 | /** |
18 | * Reset plugin path | 19 | * Reset plugin path |
diff --git a/tests/plugins/PluginIssoTest.php b/tests/plugins/PluginIssoTest.php index 7aee2197..bdfab439 100644 --- a/tests/plugins/PluginIssoTest.php +++ b/tests/plugins/PluginIssoTest.php | |||
@@ -1,5 +1,7 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Isso; | ||
2 | 3 | ||
4 | use DateTime; | ||
3 | use Shaarli\Bookmark\LinkDB; | 5 | use Shaarli\Bookmark\LinkDB; |
4 | use Shaarli\Config\ConfigManager; | 6 | use Shaarli\Config\ConfigManager; |
5 | use Shaarli\Plugin\PluginManager; | 7 | use Shaarli\Plugin\PluginManager; |
@@ -11,7 +13,7 @@ require_once 'plugins/isso/isso.php'; | |||
11 | * | 13 | * |
12 | * Test the Isso plugin (comment system). | 14 | * Test the Isso plugin (comment system). |
13 | */ | 15 | */ |
14 | class PluginIssoTest extends PHPUnit_Framework_TestCase | 16 | class PluginIssoTest extends \PHPUnit\Framework\TestCase |
15 | { | 17 | { |
16 | /** | 18 | /** |
17 | * Reset plugin path | 19 | * Reset plugin path |
diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php index 90a19e7b..5e7c02b0 100644 --- a/tests/plugins/PluginMarkdownTest.php +++ b/tests/plugins/PluginMarkdownTest.php | |||
@@ -1,4 +1,6 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Markdown; | ||
3 | |||
2 | use Shaarli\Config\ConfigManager; | 4 | use Shaarli\Config\ConfigManager; |
3 | use Shaarli\Plugin\PluginManager; | 5 | use Shaarli\Plugin\PluginManager; |
4 | 6 | ||
@@ -14,7 +16,7 @@ require_once 'plugins/markdown/markdown.php'; | |||
14 | * Class PluginMarkdownTest | 16 | * Class PluginMarkdownTest |
15 | * Unit test for the Markdown plugin | 17 | * Unit test for the Markdown plugin |
16 | */ | 18 | */ |
17 | class PluginMarkdownTest extends PHPUnit_Framework_TestCase | 19 | class PluginMarkdownTest extends \PHPUnit\Framework\TestCase |
18 | { | 20 | { |
19 | /** | 21 | /** |
20 | * @var ConfigManager instance. | 22 | * @var ConfigManager instance. |
diff --git a/tests/plugins/PluginPlayvideosTest.php b/tests/plugins/PluginPlayvideosTest.php index aa3ad143..51472617 100644 --- a/tests/plugins/PluginPlayvideosTest.php +++ b/tests/plugins/PluginPlayvideosTest.php | |||
@@ -1,4 +1,5 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Playvideos; | ||
2 | 3 | ||
3 | /** | 4 | /** |
4 | * PluginPlayvideosTest.php | 5 | * PluginPlayvideosTest.php |
@@ -8,13 +9,12 @@ use Shaarli\Plugin\PluginManager; | |||
8 | use Shaarli\Router; | 9 | use Shaarli\Router; |
9 | 10 | ||
10 | require_once 'plugins/playvideos/playvideos.php'; | 11 | require_once 'plugins/playvideos/playvideos.php'; |
11 | require_once 'application/Router.php'; | ||
12 | 12 | ||
13 | /** | 13 | /** |
14 | * Class PluginPlayvideosTest | 14 | * Class PluginPlayvideosTest |
15 | * Unit test for the PlayVideos plugin | 15 | * Unit test for the PlayVideos plugin |
16 | */ | 16 | */ |
17 | class PluginPlayvideosTest extends PHPUnit_Framework_TestCase | 17 | class PluginPlayvideosTest extends \PHPUnit\Framework\TestCase |
18 | { | 18 | { |
19 | /** | 19 | /** |
20 | * Reset plugin path | 20 | * Reset plugin path |
diff --git a/tests/plugins/PluginPubsubhubbubTest.php b/tests/plugins/PluginPubsubhubbubTest.php index 4680513e..a7bd8fc9 100644 --- a/tests/plugins/PluginPubsubhubbubTest.php +++ b/tests/plugins/PluginPubsubhubbubTest.php | |||
@@ -1,16 +1,17 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Pubsubhubbub; | ||
3 | |||
2 | use Shaarli\Config\ConfigManager; | 4 | use Shaarli\Config\ConfigManager; |
3 | use Shaarli\Plugin\PluginManager; | 5 | use Shaarli\Plugin\PluginManager; |
4 | use Shaarli\Router; | 6 | use Shaarli\Router; |
5 | 7 | ||
6 | require_once 'plugins/pubsubhubbub/pubsubhubbub.php'; | 8 | require_once 'plugins/pubsubhubbub/pubsubhubbub.php'; |
7 | require_once 'application/Router.php'; | ||
8 | 9 | ||
9 | /** | 10 | /** |
10 | * Class PluginPubsubhubbubTest | 11 | * Class PluginPubsubhubbubTest |
11 | * Unit test for the pubsubhubbub plugin | 12 | * Unit test for the pubsubhubbub plugin |
12 | */ | 13 | */ |
13 | class PluginPubsubhubbubTest extends PHPUnit_Framework_TestCase | 14 | class PluginPubsubhubbubTest extends \PHPUnit\Framework\TestCase |
14 | { | 15 | { |
15 | /** | 16 | /** |
16 | * @var string Config file path (without extension). | 17 | * @var string Config file path (without extension). |
diff --git a/tests/plugins/PluginQrcodeTest.php b/tests/plugins/PluginQrcodeTest.php index 325e3109..0c61e14a 100644 --- a/tests/plugins/PluginQrcodeTest.php +++ b/tests/plugins/PluginQrcodeTest.php | |||
@@ -1,4 +1,6 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Qrcode; | ||
3 | |||
2 | /** | 4 | /** |
3 | * PluginQrcodeTest.php | 5 | * PluginQrcodeTest.php |
4 | */ | 6 | */ |
@@ -7,13 +9,12 @@ use Shaarli\Plugin\PluginManager; | |||
7 | use Shaarli\Router; | 9 | use Shaarli\Router; |
8 | 10 | ||
9 | require_once 'plugins/qrcode/qrcode.php'; | 11 | require_once 'plugins/qrcode/qrcode.php'; |
10 | require_once 'application/Router.php'; | ||
11 | 12 | ||
12 | /** | 13 | /** |
13 | * Class PluginQrcodeTest | 14 | * Class PluginQrcodeTest |
14 | * Unit test for the QR-Code plugin | 15 | * Unit test for the QR-Code plugin |
15 | */ | 16 | */ |
16 | class PluginQrcodeTest extends PHPUnit_Framework_TestCase | 17 | class PluginQrcodeTest extends \PHPUnit\Framework\TestCase |
17 | { | 18 | { |
18 | /** | 19 | /** |
19 | * Reset plugin path | 20 | * Reset plugin path |
diff --git a/tests/plugins/PluginWallabagTest.php b/tests/plugins/PluginWallabagTest.php index 4e445efb..79751921 100644 --- a/tests/plugins/PluginWallabagTest.php +++ b/tests/plugins/PluginWallabagTest.php | |||
@@ -1,11 +1,9 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Wallabag; | ||
3 | |||
2 | use Shaarli\Config\ConfigManager; | 4 | use Shaarli\Config\ConfigManager; |
3 | use Shaarli\Plugin\PluginManager; | 5 | use Shaarli\Plugin\PluginManager; |
4 | 6 | ||
5 | /** | ||
6 | * PluginWallabagTest.php.php | ||
7 | */ | ||
8 | |||
9 | require_once 'plugins/wallabag/wallabag.php'; | 7 | require_once 'plugins/wallabag/wallabag.php'; |
10 | 8 | ||
11 | /** | 9 | /** |
diff --git a/tests/plugins/WallabagInstanceTest.php b/tests/plugins/WallabagInstanceTest.php index 2c466871..bcc01604 100644 --- a/tests/plugins/WallabagInstanceTest.php +++ b/tests/plugins/WallabagInstanceTest.php | |||
@@ -1,11 +1,12 @@ | |||
1 | <?php | 1 | <?php |
2 | namespace Shaarli\Plugin\Wallabag; | ||
2 | 3 | ||
3 | require_once 'plugins/wallabag/WallabagInstance.php'; | 4 | use Shaarli\Plugin\Wallabag\WallabagInstance; |
4 | 5 | ||
5 | /** | 6 | /** |
6 | * Class WallabagInstanceTest | 7 | * Class WallabagInstanceTest |
7 | */ | 8 | */ |
8 | class WallabagInstanceTest extends PHPUnit_Framework_TestCase | 9 | class WallabagInstanceTest extends \PHPUnit\Framework\TestCase |
9 | { | 10 | { |
10 | /** | 11 | /** |
11 | * @var string wallabag url. | 12 | * @var string wallabag url. |