mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
0faf03ee4e
commit
703d602450
@ -45,6 +45,10 @@ class TranslatableSearchFormTest extends FunctionalTest {
|
||||
|
||||
$holderPage = $this->objFromFixture('SiteTree', 'searchformholder');
|
||||
$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() {
|
||||
|
@ -5,3 +5,14 @@ SiteTree:
|
||||
publishedPage:
|
||||
Title: publishedPage
|
||||
Content: English content
|
||||
Group:
|
||||
admingroup:
|
||||
Code: admingroup
|
||||
Member:
|
||||
admin:
|
||||
FirstName: Admin
|
||||
Groups: =>Group.admingroup
|
||||
Permission:
|
||||
admincode:
|
||||
Code: ADMIN
|
||||
Group: =>Group.admingroup
|
Loading…
Reference in New Issue
Block a user