From 149f7f6155c80bed9e05f700ca7d7001c65e84bf Mon Sep 17 00:00:00 2001 From: tof <> Date: Wed, 20 Jun 2007 13:15:38 +0000 Subject: Add Functional Test for Ticket 653 --- .../tickets/protected/application.xml | 15 ++++++++ .../tickets/protected/pages/Layout.php | 2 +- .../tickets/protected/pages/Ticket653/Layout.php | 13 +++++++ .../tickets/protected/pages/Ticket653/Layout.tpl | 45 ++++++++++++++++++++++ .../protected/pages/Ticket653/ticket653.page | 3 ++ .../tickets/tests/Ticket653TestCase.php | 15 ++++++++ 6 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 tests/FunctionalTests/tickets/protected/application.xml create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.php create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.tpl create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket653/ticket653.page create mode 100644 tests/FunctionalTests/tickets/tests/Ticket653TestCase.php (limited to 'tests') diff --git a/tests/FunctionalTests/tickets/protected/application.xml b/tests/FunctionalTests/tickets/protected/application.xml new file mode 100644 index 00000000..6fea47bf --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/application.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php index c2a8a44c..0e549fa7 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Layout.php +++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php @@ -7,7 +7,7 @@ class Layout extends TTemplateControl $num = str_replace('Ticket','',$this->getPage()->getPagePath()); $this->getPage()->setTitle("Verifying Ticket $num"); $this->ticketlink->setText("Verifying Ticket $num"); - $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/ticket/{$num}"); + $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}"); } } diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.php new file mode 100644 index 00000000..de4d3b3d --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.php @@ -0,0 +1,13 @@ +getPage()->setTitle("Verifying Ticket 653"); + $this->ticketlink->setText("Verifying Ticket 653"); + $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/653"); + } +} + +?> \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.tpl b/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.tpl new file mode 100644 index 00000000..bf2f8fab --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.tpl @@ -0,0 +1,45 @@ + + + + + + + + + +

+ + +
+ +
+
+ + Validate XHTML 1.0 + +View Source +
+ + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket653/ticket653.page b/tests/FunctionalTests/tickets/protected/pages/Ticket653/ticket653.page new file mode 100644 index 00000000..cab72cc3 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket653/ticket653.page @@ -0,0 +1,3 @@ + +This is the page for Ticket653 + \ No newline at end of file diff --git a/tests/FunctionalTests/tickets/tests/Ticket653TestCase.php b/tests/FunctionalTests/tickets/tests/Ticket653TestCase.php new file mode 100644 index 00000000..c25eb25f --- /dev/null +++ b/tests/FunctionalTests/tickets/tests/Ticket653TestCase.php @@ -0,0 +1,15 @@ +open('tickets/index.php/ticket653'); + $this->verifyTitle("Verifying Ticket 653", ""); + + $this->assertText('textspan', 'This is the page for Ticket653'); + } +} + +?> \ No newline at end of file -- cgit v1.2.3