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 --- .gitattributes | 4 ++ .../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 ++++++++ 7 files changed, 96 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 diff --git a/.gitattributes b/.gitattributes index 8ef7f0cd..e1f9f484 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2425,6 +2425,7 @@ tests/FunctionalTests/quickstart/Controls/Wizard5TestCase.php -text tests/FunctionalTests/quickstart/Fundamentals/HangmanTestCase.php -text tests/FunctionalTests/tickets.php -text tests/FunctionalTests/tickets/index.php -text +tests/FunctionalTests/tickets/protected/application.xml -text tests/FunctionalTests/tickets/protected/messages/en/messages.xml -text tests/FunctionalTests/tickets/protected/pages/DActiveDropDownList2.php -text tests/FunctionalTests/tickets/protected/pages/Layout.php -text @@ -2531,6 +2532,8 @@ tests/FunctionalTests/tickets/protected/pages/Ticket606.page -text tests/FunctionalTests/tickets/protected/pages/Ticket609.page -text tests/FunctionalTests/tickets/protected/pages/Ticket614.page -text tests/FunctionalTests/tickets/protected/pages/Ticket617.page -text +tests/FunctionalTests/tickets/protected/pages/Ticket653/Layout.tpl -text +tests/FunctionalTests/tickets/protected/pages/Ticket653/ticket653.page -text tests/FunctionalTests/tickets/protected/pages/Ticket68.page -text tests/FunctionalTests/tickets/protected/pages/Ticket72.page -text tests/FunctionalTests/tickets/protected/pages/Ticket72.php -text @@ -2570,6 +2573,7 @@ tests/FunctionalTests/tickets/tests/Ticket578TestCase.php -text tests/FunctionalTests/tickets/tests/Ticket585TestCase.php -text tests/FunctionalTests/tickets/tests/Ticket586TestCase.php -text tests/FunctionalTests/tickets/tests/Ticket587TestCase.php -text +tests/FunctionalTests/tickets/tests/Ticket653TestCase.php -text tests/FunctionalTests/tickets/tests/Ticket72TestCase.php -text tests/FunctionalTests/tickets/tests/Ticket93TestCase.php -text tests/FunctionalTests/validators.php -text 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