BUGFIX Added required permissions to TranslatableSearchFormTest

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88124 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-10-05 19:47:00 +00:00
parent 0faf03ee4e
commit 703d602450
2 changed files with 16 additions and 1 deletions

View File

@ -45,6 +45,10 @@ class TranslatableSearchFormTest extends FunctionalTest {
$holderPage = $this->objFromFixture('SiteTree', 'searchformholder'); $holderPage = $this->objFromFixture('SiteTree', 'searchformholder');
$this->mockController = new ContentController($holderPage); $this->mockController = new ContentController($holderPage);
// whenever a translation is created, canTranslate() is checked
$admin = $this->objFromFixture('Member', 'admin');
$admin->logIn();
} }
static function tear_down_once() { static function tear_down_once() {

View File

@ -5,3 +5,14 @@ SiteTree:
publishedPage: publishedPage:
Title: publishedPage Title: publishedPage
Content: English content Content: English content
Group:
admingroup:
Code: admingroup
Member:
admin:
FirstName: Admin
Groups: =>Group.admingroup
Permission:
admincode:
Code: ADMIN
Group: =>Group.admingroup