diff --git a/tests/search/TranslatableSearchFormTest.php b/tests/search/TranslatableSearchFormTest.php index c69e74727..263533807 100644 --- a/tests/search/TranslatableSearchFormTest.php +++ b/tests/search/TranslatableSearchFormTest.php @@ -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() { diff --git a/tests/search/TranslatableSearchFormTest.yml b/tests/search/TranslatableSearchFormTest.yml index 22a7c56f9..2fbf0608d 100644 --- a/tests/search/TranslatableSearchFormTest.yml +++ b/tests/search/TranslatableSearchFormTest.yml @@ -4,4 +4,15 @@ SiteTree: Title: searchformholder publishedPage: Title: publishedPage - Content: English content \ No newline at end of file + Content: English content +Group: + admingroup: + Code: admingroup +Member: + admin: + FirstName: Admin + Groups: =>Group.admingroup +Permission: + admincode: + Code: ADMIN + Group: =>Group.admingroup \ No newline at end of file