Permalink
Browse files

Modifying test suite results display to remove leading backslash, and…

… removing "test results for" text on initial page load, when no tests results are available.
  • Loading branch information...
1 parent c4482d6 commit 6c0a90ed49532eddc9ed8d4ec630885e02b0923d @nateabele nateabele committed Jul 6, 2010
Showing with 5 additions and 3 deletions.
  1. +2 −2 libraries/lithium/test/Controller.php
  2. +3 −1 libraries/lithium/test/templates/html/layout.html.php
@@ -39,9 +39,9 @@ public function __invoke($request, $dispatchParams, array $options = array()) {
$request = $params['request'];
$options = $params['options'];
$params = $params['dispatchParams'];
- $group = '\\' . join('\\', (array) $params['args']);
+ $group = join('\\', (array) $params['args']);
- if ($group === "\\all") {
+ if ($group === "all") {
$group = Group::all();
$options['title'] = 'All Tests';
}
@@ -29,7 +29,9 @@
</div>
<div class="test-content">
- <h2><span>test results for </span><?php echo $report->title; ?></h2>
+ <?php if ($report->title) { ?>
+ <h2><span>test results for </span><?php echo $report->title; ?></h2>
+ <?php } ?>
<span class="filters">
<?php echo join('', array_map(

0 comments on commit 6c0a90e

Please sign in to comment.