diff options
author | godzilla80@gmx.net <> | 2009-03-18 09:15:53 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2009-03-18 09:15:53 +0000 |
commit | 798783263a8638675c0df2d1274fb1947ef79d1b (patch) | |
tree | b22feb8b7b5f7c793614ab12e00997a9975cb1e6 /tests | |
parent | 0c89d5004461ab705af3c7d92c30aba20a1609cd (diff) |
a little "goggle code issues" releated modification
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FunctionalTests/index.php | 2 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Layout.php | 17 |
2 files changed, 14 insertions, 5 deletions
diff --git a/tests/FunctionalTests/index.php b/tests/FunctionalTests/index.php index 319ca3dc..128e80e3 100644 --- a/tests/FunctionalTests/index.php +++ b/tests/FunctionalTests/index.php @@ -10,7 +10,7 @@ Prado Functional Test Suites <li><a href="quickstart.php">Tests of QuickStart Tutorial Demo</a></li> <li><a href="validators.php">Tests of Validators</a> (<a href="validators/index.php">list of test samples</a>)</li> <li><a href="active.php">Tests of Active Controls</a> (<a href="active-controls/index.php">list of test samples</a>) </li> - <li><a href="tickets.php">Tests of Trac Tickets</a> (<a href="tickets/index.php">list of Test Samples</a>)</li> + <li><a href="tickets.php">Tests of Trac Tickets and Goggle Code Issues</a> (<a href="tickets/index.php">list of Test Samples</a>)</li> <li><a href="features.php">Tests of New Features</a> (<a href="features/index.php">list of new features</a>)</li> </ul> </body> diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php index 0e549fa7..6d455371 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Layout.php +++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php @@ -4,10 +4,19 @@ class Layout extends TTemplateControl {
public function onLoad($param)
{
- $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/prado/ticket/{$num}");
+ $num = str_replace(array('Ticket', 'Issue'), '', $this->getPage()->getPagePath());
+ $type = str_replace($num, '', $this->getPage()->getPagePath());
+
+ $this->getPage()->setTitle("Verifying $type $num");
+ $this->ticketlink->setText("Verifying $type $num");
+
+ if(strToLower($type) === 'issue') {
+ $this->ticketlink->setNavigateUrl("http://code.google.com/p/prado3/issues/detail?id={$num}");
+ }
+ else {
+ $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}");
+ }
+
}
}
|