diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/RouterTest.php | 9 | ||||
-rw-r--r-- | tests/plugins/PluginAddlinkTest.php | 2 | ||||
-rw-r--r-- | tests/plugins/PluginPlayvideosTest.php | 2 | ||||
-rw-r--r-- | tests/plugins/PluginPubsubhubbubTest.php | 1 | ||||
-rw-r--r-- | tests/plugins/PluginQrcodeTest.php | 2 |
5 files changed, 9 insertions, 7 deletions
diff --git a/tests/RouterTest.php b/tests/RouterTest.php index abf1bd5f..0cd49bb8 100644 --- a/tests/RouterTest.php +++ b/tests/RouterTest.php | |||
@@ -1,15 +1,10 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | namespace Shaarli; | |
3 | /** | ||
4 | * Router tests | ||
5 | */ | ||
6 | |||
7 | require_once 'application/Router.php'; | ||
8 | 3 | ||
9 | /** | 4 | /** |
10 | * Unit tests for Router | 5 | * Unit tests for Router |
11 | */ | 6 | */ |
12 | class RouterTest extends PHPUnit_Framework_TestCase | 7 | class RouterTest extends \PHPUnit\Framework\TestCase |
13 | { | 8 | { |
14 | /** | 9 | /** |
15 | * Test findPage: login page output. | 10 | * Test findPage: login page output. |
diff --git a/tests/plugins/PluginAddlinkTest.php b/tests/plugins/PluginAddlinkTest.php index b6239e7f..f6fea7af 100644 --- a/tests/plugins/PluginAddlinkTest.php +++ b/tests/plugins/PluginAddlinkTest.php | |||
@@ -4,6 +4,8 @@ | |||
4 | * PluginPlayvideosTest.php | 4 | * PluginPlayvideosTest.php |
5 | */ | 5 | */ |
6 | 6 | ||
7 | use Shaarli\Router; | ||
8 | |||
7 | require_once 'plugins/addlink_toolbar/addlink_toolbar.php'; | 9 | require_once 'plugins/addlink_toolbar/addlink_toolbar.php'; |
8 | require_once 'application/Router.php'; | 10 | require_once 'application/Router.php'; |
9 | 11 | ||
diff --git a/tests/plugins/PluginPlayvideosTest.php b/tests/plugins/PluginPlayvideosTest.php index 29ad047f..7ee92400 100644 --- a/tests/plugins/PluginPlayvideosTest.php +++ b/tests/plugins/PluginPlayvideosTest.php | |||
@@ -4,6 +4,8 @@ | |||
4 | * PluginPlayvideosTest.php | 4 | * PluginPlayvideosTest.php |
5 | */ | 5 | */ |
6 | 6 | ||
7 | use Shaarli\Router; | ||
8 | |||
7 | require_once 'plugins/playvideos/playvideos.php'; | 9 | require_once 'plugins/playvideos/playvideos.php'; |
8 | require_once 'application/Router.php'; | 10 | require_once 'application/Router.php'; |
9 | 11 | ||
diff --git a/tests/plugins/PluginPubsubhubbubTest.php b/tests/plugins/PluginPubsubhubbubTest.php index 69d00936..75f146f2 100644 --- a/tests/plugins/PluginPubsubhubbubTest.php +++ b/tests/plugins/PluginPubsubhubbubTest.php | |||
@@ -1,5 +1,6 @@ | |||
1 | <?php | 1 | <?php |
2 | use Shaarli\Config\ConfigManager; | 2 | use Shaarli\Config\ConfigManager; |
3 | use Shaarli\Router; | ||
3 | 4 | ||
4 | require_once 'plugins/pubsubhubbub/pubsubhubbub.php'; | 5 | require_once 'plugins/pubsubhubbub/pubsubhubbub.php'; |
5 | require_once 'application/Router.php'; | 6 | require_once 'application/Router.php'; |
diff --git a/tests/plugins/PluginQrcodeTest.php b/tests/plugins/PluginQrcodeTest.php index dd632eee..419965eb 100644 --- a/tests/plugins/PluginQrcodeTest.php +++ b/tests/plugins/PluginQrcodeTest.php | |||
@@ -3,6 +3,8 @@ | |||
3 | * PluginQrcodeTest.php | 3 | * PluginQrcodeTest.php |
4 | */ | 4 | */ |
5 | 5 | ||
6 | use Shaarli\Router; | ||
7 | |||
6 | require_once 'plugins/qrcode/qrcode.php'; | 8 | require_once 'plugins/qrcode/qrcode.php'; |
7 | require_once 'application/Router.php'; | 9 | require_once 'application/Router.php'; |
8 | 10 | ||