summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets')
-rw-r--r--tests/FunctionalTests/tickets/tests/Ticket785TestCase.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket785TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket785TestCase.php
index 53851f7a..153422be 100644
--- a/tests/FunctionalTests/tickets/tests/Ticket785TestCase.php
+++ b/tests/FunctionalTests/tickets/tests/Ticket785TestCase.php
@@ -3,14 +3,15 @@ class Ticket785TestCase extends SeleniumTestCase
{
function test()
{
+ $year=date('Y')-1;
$base = 'ctl0_Content_';
$this->open('tickets/index.php?page=Ticket785');
$this->assertTitle("Verifying Ticket 785");
$this->assertText('selDate', '');
- $this->select($base."datePicker_year", "2007");
+ $this->select($base."datePicker_year", $year);
$this->pause(800);
- $expectedDate=date("d-m").'-2007';
+ $expectedDate=date("d-m").'-'.$year;
$this->assertText('selDate', $expectedDate);
$this->click($base."datePickerbutton");