mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
MINOR: Fixed tests
This commit is contained in:
parent
7d3d498cb9
commit
ae27dc25ff
@ -105,13 +105,11 @@ class SubsiteTest extends SapphireTest {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// @todo: Workaround because GroupSubsites->augmentSQL() is relying on session state
|
// @todo: Workaround because GroupSubsites->augmentSQL() is relying on session state
|
||||||
Subsite::changeSubsite($subsite2);
|
Subsite::changeSubsite(0);
|
||||||
$this->assertFalse(
|
$this->assertFalse(
|
||||||
$mainpage->canEdit(),
|
$mainpage->canEdit(),
|
||||||
'Members cant edit pages on the main site if they are not in a group allowing this'
|
'Members cant edit pages on the main site if they are not in a group allowing this'
|
||||||
);
|
);
|
||||||
|
|
||||||
Subsite::changeSubsite(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user