mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-29 18:26:05 +00:00
Fix phpunit tests ('Attempt to read property "rrule_loop_limit" on null') and add them to 'make test'
This commit is contained in:
parent
b40c96debb
commit
477425f3fe
4
Makefile
4
Makefile
@ -71,9 +71,11 @@ test:
|
||||
exit 1; \
|
||||
else \
|
||||
rm test-syntax; \
|
||||
echo "OK (Syntax checked)"; \
|
||||
exit 0; \
|
||||
fi
|
||||
|
||||
# run phpunit tests
|
||||
phpunit testing/phpunit
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
3
debian/control
vendored
3
debian/control
vendored
@ -11,7 +11,8 @@ Build-Depends: debhelper-compat (= 13),
|
||||
libawl-php (>= 0.64-1~), libawl-php (<< 0.65),
|
||||
gettext,
|
||||
doxygen,
|
||||
php-cli | php5-cli
|
||||
php-cli | php5-cli,
|
||||
phpunit
|
||||
Vcs-Git: https://gitlab.com/davical-project/davical.git
|
||||
Vcs-Browser: https://gitlab.com/davical-project/davical
|
||||
Homepage: https://www.davical.org/
|
||||
|
||||
@ -7,6 +7,9 @@ require_once('vCalendar.php');
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
$c = (object) array();
|
||||
$c->rrule_loop_limit = 100;
|
||||
|
||||
// 1PM-2PM Monday-Thursday (only for one week), NZ time
|
||||
$base_cal = new vCalendar("BEGIN:VCALENDAR
|
||||
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
|
||||
|
||||
@ -7,6 +7,9 @@ require_once('vCalendar.php');
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
$c = (object) array();
|
||||
$c->rrule_loop_limit = 100;
|
||||
|
||||
final class RangeTest extends TestCase
|
||||
{
|
||||
public function testGetVCalendarRange() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user