aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/PluginManagerTest.php10
-rw-r--r--tests/plugins/PluginAddlinkTest.php9
-rw-r--r--tests/plugins/PluginArchiveorgTest.php2
-rw-r--r--tests/plugins/PluginIssoTest.php1
-rw-r--r--tests/plugins/PluginMarkdownTest.php1
-rw-r--r--tests/plugins/PluginPlayvideosTest.php1
-rw-r--r--tests/plugins/PluginPubsubhubbubTest.php1
-rw-r--r--tests/plugins/PluginQrcodeTest.php1
-rw-r--r--tests/plugins/PluginWallabagTest.php3
9 files changed, 14 insertions, 15 deletions
diff --git a/tests/PluginManagerTest.php b/tests/PluginManagerTest.php
index 01de959c..71761ac1 100644
--- a/tests/PluginManagerTest.php
+++ b/tests/PluginManagerTest.php
@@ -1,16 +1,12 @@
1<?php 1<?php
2use Shaarli\Config\ConfigManager; 2namespace Shaarli\Plugin;
3 3
4/** 4use Shaarli\Config\ConfigManager;
5 * Plugin Manager tests
6 */
7
8require_once 'application/PluginManager.php';
9 5
10/** 6/**
11 * Unit tests for Plugins 7 * Unit tests for Plugins
12 */ 8 */
13class PluginManagerTest extends PHPUnit_Framework_TestCase 9class PluginManagerTest extends \PHPUnit\Framework\TestCase
14{ 10{
15 /** 11 /**
16 * Path to tests plugin. 12 * Path to tests plugin.
diff --git a/tests/plugins/PluginAddlinkTest.php b/tests/plugins/PluginAddlinkTest.php
index f6fea7af..e0a0107d 100644
--- a/tests/plugins/PluginAddlinkTest.php
+++ b/tests/plugins/PluginAddlinkTest.php
@@ -1,19 +1,14 @@
1<?php 1<?php
2 2
3/** 3use Shaarli\Plugin\PluginManager;
4 * PluginPlayvideosTest.php
5 */
6
7use Shaarli\Router; 4use Shaarli\Router;
8 5
9require_once 'plugins/addlink_toolbar/addlink_toolbar.php'; 6require_once 'plugins/addlink_toolbar/addlink_toolbar.php';
10require_once 'application/Router.php';
11 7
12/** 8/**
13 * Class PluginAddlinkTest
14 * Unit test for the Addlink toolbar plugin 9 * Unit test for the Addlink toolbar plugin
15 */ 10 */
16class PluginAddlinkTest extends PHPUnit_Framework_TestCase 11class PluginAddlinkTest extends \PHPUnit\Framework\TestCase
17{ 12{
18 /** 13 /**
19 * Reset plugin path. 14 * Reset plugin path.
diff --git a/tests/plugins/PluginArchiveorgTest.php b/tests/plugins/PluginArchiveorgTest.php
index fecd5f2c..d06bfa59 100644
--- a/tests/plugins/PluginArchiveorgTest.php
+++ b/tests/plugins/PluginArchiveorgTest.php
@@ -4,6 +4,8 @@
4 * PluginArchiveorgTest.php 4 * PluginArchiveorgTest.php
5 */ 5 */
6 6
7use Shaarli\Plugin\PluginManager;
8
7require_once 'plugins/archiveorg/archiveorg.php'; 9require_once 'plugins/archiveorg/archiveorg.php';
8 10
9/** 11/**
diff --git a/tests/plugins/PluginIssoTest.php b/tests/plugins/PluginIssoTest.php
index f5fa1daa..7aee2197 100644
--- a/tests/plugins/PluginIssoTest.php
+++ b/tests/plugins/PluginIssoTest.php
@@ -2,6 +2,7 @@
2 2
3use Shaarli\Bookmark\LinkDB; 3use Shaarli\Bookmark\LinkDB;
4use Shaarli\Config\ConfigManager; 4use Shaarli\Config\ConfigManager;
5use Shaarli\Plugin\PluginManager;
5 6
6require_once 'plugins/isso/isso.php'; 7require_once 'plugins/isso/isso.php';
7 8
diff --git a/tests/plugins/PluginMarkdownTest.php b/tests/plugins/PluginMarkdownTest.php
index d6951866..90a19e7b 100644
--- a/tests/plugins/PluginMarkdownTest.php
+++ b/tests/plugins/PluginMarkdownTest.php
@@ -1,5 +1,6 @@
1<?php 1<?php
2use Shaarli\Config\ConfigManager; 2use Shaarli\Config\ConfigManager;
3use Shaarli\Plugin\PluginManager;
3 4
4/** 5/**
5 * PluginMarkdownTest.php 6 * PluginMarkdownTest.php
diff --git a/tests/plugins/PluginPlayvideosTest.php b/tests/plugins/PluginPlayvideosTest.php
index 7ee92400..aa3ad143 100644
--- a/tests/plugins/PluginPlayvideosTest.php
+++ b/tests/plugins/PluginPlayvideosTest.php
@@ -4,6 +4,7 @@
4 * PluginPlayvideosTest.php 4 * PluginPlayvideosTest.php
5 */ 5 */
6 6
7use Shaarli\Plugin\PluginManager;
7use Shaarli\Router; 8use Shaarli\Router;
8 9
9require_once 'plugins/playvideos/playvideos.php'; 10require_once 'plugins/playvideos/playvideos.php';
diff --git a/tests/plugins/PluginPubsubhubbubTest.php b/tests/plugins/PluginPubsubhubbubTest.php
index 75f146f2..4680513e 100644
--- a/tests/plugins/PluginPubsubhubbubTest.php
+++ b/tests/plugins/PluginPubsubhubbubTest.php
@@ -1,5 +1,6 @@
1<?php 1<?php
2use Shaarli\Config\ConfigManager; 2use Shaarli\Config\ConfigManager;
3use Shaarli\Plugin\PluginManager;
3use Shaarli\Router; 4use Shaarli\Router;
4 5
5require_once 'plugins/pubsubhubbub/pubsubhubbub.php'; 6require_once 'plugins/pubsubhubbub/pubsubhubbub.php';
diff --git a/tests/plugins/PluginQrcodeTest.php b/tests/plugins/PluginQrcodeTest.php
index 419965eb..325e3109 100644
--- a/tests/plugins/PluginQrcodeTest.php
+++ b/tests/plugins/PluginQrcodeTest.php
@@ -3,6 +3,7 @@
3 * PluginQrcodeTest.php 3 * PluginQrcodeTest.php
4 */ 4 */
5 5
6use Shaarli\Plugin\PluginManager;
6use Shaarli\Router; 7use Shaarli\Router;
7 8
8require_once 'plugins/qrcode/qrcode.php'; 9require_once 'plugins/qrcode/qrcode.php';
diff --git a/tests/plugins/PluginWallabagTest.php b/tests/plugins/PluginWallabagTest.php
index 76b7887e..4e445efb 100644
--- a/tests/plugins/PluginWallabagTest.php
+++ b/tests/plugins/PluginWallabagTest.php
@@ -1,5 +1,6 @@
1<?php 1<?php
2use Shaarli\Config\ConfigManager; 2use Shaarli\Config\ConfigManager;
3use Shaarli\Plugin\PluginManager;
3 4
4/** 5/**
5 * PluginWallabagTest.php.php 6 * PluginWallabagTest.php.php
@@ -11,7 +12,7 @@ require_once 'plugins/wallabag/wallabag.php';
11 * Class PluginWallabagTest 12 * Class PluginWallabagTest
12 * Unit test for the Wallabag plugin 13 * Unit test for the Wallabag plugin
13 */ 14 */
14class PluginWallabagTest extends PHPUnit_Framework_TestCase 15class PluginWallabagTest extends \PHPUnit\Framework\TestCase
15{ 16{
16 /** 17 /**
17 * Reset plugin path 18 * Reset plugin path