From 02014e728e09fe672aabb946176492b9ed51606d Mon Sep 17 00:00:00 2001 From: knut <> Date: Tue, 5 Aug 2008 18:02:53 +0000 Subject: fixed #897 --- .../tickets/protected/pages/Ticket897.page | 8 ++++++++ .../tickets/protected/pages/Ticket897.php | 9 +++++++++ .../tickets/tests/Ticket897TestCase.php | 19 +++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket897.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket897.php create mode 100644 tests/FunctionalTests/tickets/tests/Ticket897TestCase.php (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket897.page b/tests/FunctionalTests/tickets/protected/pages/Ticket897.page new file mode 100644 index 00000000..93237b98 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket897.page @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket897.php b/tests/FunctionalTests/tickets/protected/pages/Ticket897.php new file mode 100644 index 00000000..b0b8959f --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket897.php @@ -0,0 +1,9 @@ +Output->Text = date('Y-m-d', $this->Date->TimeStamp); + } + +} +?> diff --git a/tests/FunctionalTests/tickets/tests/Ticket897TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket897TestCase.php new file mode 100644 index 00000000..eaf4e47a --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket897TestCase.php @@ -0,0 +1,19 @@ +open('tickets/index.php?page=Ticket897'); + $this->assertTitle("Verifying Ticket 897"); + $base = 'ctl0_Content_'; + + $this->select($base.'Date_month', 10); + $this->select($base.'Date_day', 22); + + $this->clickAndWait($base.'SendButton'); + $this->assertTextPresent('2008-10-22'); + } +} + +?> -- cgit v1.2.3