Merge remote-tracking branch 'origin/3.0' into 3.1

This commit is contained in:
Ingo Schommer 2013-10-01 11:19:14 +02:00
commit 956b6de05c
2 changed files with 16 additions and 1 deletions

View File

@ -166,7 +166,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
$columns->setFieldFormatting(array( $columns->setFieldFormatting(array(
'title' => function($value, &$item) { 'title' => function($value, &$item) {
return sprintf( return sprintf(
'<a href=\"%s\" class=\"cms-panel-link\">%s</a>', '<a href="%s" class="cms-panel-link">%s</a>',
Convert::raw2xml($item->Link), Convert::raw2xml($item->Link),
Convert::raw2xml($value) Convert::raw2xml($value)
); );

View File

@ -0,0 +1,15 @@
Feature: View Reports
As an author
I want to review aggregate reports on pages
So that I can keep an overview on the health of my website data
Background:
Given a "page" "Empty Page"
And a "page" "Filled Page" with "Content"="Some Content"
And I am logged in with "ADMIN" permissions
And I go to "/admin/reports"
Scenario: I can view the "Pages with no content" report
When I follow "Pages with no content"
Then I should see "Empty Page"
But I should not see "Filled Page"