diff options
author | Fabio Bas <ctrlaltca@gmail.com> | 2014-01-06 22:34:49 +0100 |
---|---|---|
committer | David <ottodavid@gmx.net> | 2014-08-21 17:18:50 +0200 |
commit | 48577f63f414dc3078abc4bdc93bde932fe666a6 (patch) | |
tree | c17d333a28c4a8e1167ec90d56f4a79da797d4c1 /tests/FunctionalTests/tickets | |
parent | 2b11341614ac4a15be697fa8acad07055154ac54 (diff) |
Fixed some function tests; start working on porting them to Selenium2 interface
(cherry picked from commit 5d9f6fc77131d75e6c73a7e57df8d967b6b09215)
Conflicts:
tests/FunctionalTests/validators/tests/DatePickerTestCase.php
Diffstat (limited to 'tests/FunctionalTests/tickets')
-rwxr-xr-x | tests/FunctionalTests/tickets/tests/Ticket656TestCase.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/FunctionalTests/tickets/tests/Ticket656TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket656TestCase.php index ff167b0e..9fe238b9 100755 --- a/tests/FunctionalTests/tickets/tests/Ticket656TestCase.php +++ b/tests/FunctionalTests/tickets/tests/Ticket656TestCase.php @@ -6,19 +6,20 @@ class Ticket656TestCase extends PradoGenericSeleniumTest $base = 'ctl0_Content_'; $this->open('tickets/index.php?page=Ticket656'); $this->assertTitle("Verifying Ticket 656"); - + // First test, current date $this->click($base."btnUpdate"); $this->pause(800); $this->assertText($base."lblStatus",date("d-m-Y")); - + // Then, set another date + $year=date('Y')-2; $this->select($base."datePicker_day",20); $this->select($base."datePicker_month", 10); - $this->select($base."datePicker_year", 2008); + $this->select($base."datePicker_year", $year); $this->click($base."btnUpdate"); $this->pause(800); - $this->assertText($base."lblStatus",date("d-m-Y", mktime(0,0,0,10,20,2008))); + $this->assertText($base."lblStatus",date("d-m-Y", mktime(0,0,0,10,20,$year))); } }
\ No newline at end of file |