Using fixed date in tests, removing extra dependencies

This commit is contained in:
Zachary Klosko 2020-12-22 10:22:46 -05:00
parent bd730c87e0
commit 78e78243f7
3 changed files with 4 additions and 18 deletions

View File

@ -22,14 +22,7 @@ apt-get install -y gstreamer1.0-plugins-base \
python3-gi-cairo \
python-cairo \
pkg-config \
libcairo2-dev \
php-curl \
php-gd \
php-pgsql \
php-apcu \
php-bcmath \
php-mbstring \
php-pear
libcairo2-dev
# Making directory; not sure why...
mkdir -p /tmp/log/libretime

View File

@ -22,14 +22,7 @@ apt-get install -y gstreamer1.0-plugins-base \
python3-gi-cairo \
python-cairo \
pkg-config \
libcairo2-dev \
php7.0-curl \
php7.0-gd \
php7.0-pgsql \
php-apcu \
php-bcmath \
php-mbstring \
php-pear
libcairo2-dev
# Making directory; not sure why...
mkdir -p /tmp/log/libretime

View File

@ -23,7 +23,7 @@ class ScheduleUnitTest extends Zend_Test_PHPUnit_ControllerTestCase //PHPUnit_Fr
$testShowData = ShowServiceData::getNoRepeatNoRRData();
$showService = new Application_Service_ShowService();
$futureDate = new DateTime();
$futureDate = new DateTime('2040-01-01T12:00:00.012345Z');
$futureDate->add(new DateInterval('P1Y')); //1 year into the future
$futureDateString = $futureDate->format('Y-m-d');
@ -35,7 +35,7 @@ class ScheduleUnitTest extends Zend_Test_PHPUnit_ControllerTestCase //PHPUnit_Fr
//value will prevent anything from actually being scheduled. Normally this isn't
//a problem because as soon as you view the calendar for the first time, this is
//set to a week ahead in the future.
$populateUntil = new DateTime("now", new DateTimeZone('UTC'));
$populateUntil = new DateTime('2040-01-01T12:00:00.012345Z', new DateTimeZone('UTC'));
$populateUntil = $populateUntil->add(new DateInterval("P2Y")); //2 years ahead in the future.
Application_Model_Preference::SetShowsPopulatedUntil($populateUntil);