summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:56:48 +0200
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:57:07 +0200
commit3069eaf35e833ffe4a1c1c7829dd7e168ae27420 (patch)
treed0c2e4d934cc34ba7d4232f759923b5a257dcb21 /tests/FunctionalTests
parentb833247ce597ec26159b46c8dfbea7f1e265950b (diff)
Merge up to r3319
Diffstat (limited to 'tests/FunctionalTests')
-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");