mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Added setup/teardown methods to SiteTreeBacklinksTest to make it work with Translatable enabled
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89863 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d3130e6dfe
commit
0fc7d4d656
@ -3,8 +3,21 @@
|
|||||||
class SiteTreeBacklinksTest extends SapphireTest {
|
class SiteTreeBacklinksTest extends SapphireTest {
|
||||||
static $fixture_file = "sapphire/tests/SiteTreeBacklinksTest.yml";
|
static $fixture_file = "sapphire/tests/SiteTreeBacklinksTest.yml";
|
||||||
|
|
||||||
|
static function set_up_once() {
|
||||||
|
SiteTreeTest::set_up_once();
|
||||||
|
|
||||||
|
parent::set_up_once();
|
||||||
|
}
|
||||||
|
|
||||||
|
static function tear_down_once() {
|
||||||
|
SiteTreeTest::tear_down_once();
|
||||||
|
|
||||||
|
parent::tear_down_once();
|
||||||
|
}
|
||||||
|
|
||||||
function setUp() {
|
function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
// Log in as admin so that we don't run into permission issues. That's not what we're
|
// Log in as admin so that we don't run into permission issues. That's not what we're
|
||||||
// testing here.
|
// testing here.
|
||||||
$this->logInWithPermssion('ADMIN');
|
$this->logInWithPermssion('ADMIN');
|
||||||
|
Loading…
Reference in New Issue
Block a user