Skip to content

Commit 4d24ef4

Browse files
committedAug 14, 2023
Revise unit tests
1 parent 635f8ff commit 4d24ef4

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
lines changed
 

‎README.md

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ This plugin is free but if you install and find it useful then a donation to sup
4444
## Version history ##
4545

4646
version Description
47+
2.11.10+20230814 Use function to get the public URL
4748
2.11.9+20230630 Log libxml parse errors
4849
2.11.8+20230412 Remove leading and trailing whitespace from link URLs to avoid them being % encoded
4950
2.11.7+20230412 Remove surrounding white space from image URLs

‎changelog.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
version 2.11.10+20230814
2+
Use function to get the public URL
3+
Revise unit tests
4+
15
version 2.11.9+20230630
26
Log libxml parse errors
37
cs fixer changes

‎phpunit.xml

+4
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@
88
<directory>tests</directory>
99
</testsuite>
1010
</testsuites>
11+
<php>
12+
<includePath>/home/duncan/Development/GitHub/phplist-plugin-common/plugins/:plugins</includePath>
13+
<var name="systemroot" value="/home/duncan/www/lists/admin"/>
14+
</php>
1115
</phpunit>

‎plugins/ViewBrowserPlugin/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.11.9+20230630
1+
2.11.10+20230814

‎tests/bootstrap.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
require __DIR__ . '/config_table.php';
44
require __DIR__ . '/phplist.php';
55

6-
$GLOBALS['systemroot'] = '/home/duncan/www/lists';
76
define('PHPLISTINIT', 1);
8-
define("PLUGIN_ROOTDIR", $GLOBALS['systemroot'] . '/admin/plugins');
7+
define("PLUGIN_ROOTDIR", 'plugins');
98
define("PLUGIN_ROOTDIRS", "");
109
define('EMAILTEXTCREDITS', true);
1110
define('ALWAYS_ADD_USERTRACK', true);
@@ -31,11 +30,12 @@
3130

3231
$_GET['pi'] = 'ViewBrowserPlugin';
3332

34-
require __DIR__ . '/../plugins/ViewBrowserPlugin.php';
33+
require 'ViewBrowserPlugin.php';
3534
$pi = new ViewBrowserPlugin();
36-
$pi->activate();
37-
3835
$GLOBALS['plugins'] = [
3936
'ViewBrowserPlugin' => $pi,
4037
];
41-
require PLUGIN_ROOTDIR . '/CommonPlugin/Autoloader.php';
38+
require 'CommonPlugin/Autoloader.php';
39+
40+
$pi->activate();
41+

0 commit comments

Comments
 (0)
Please sign in to comment.