mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Use SapphireTest::logOut over manually checking Security::getCurrentUser
This commit is contained in:
parent
9d26cff23d
commit
afc1a3dd25
@ -49,11 +49,7 @@ class BlogTest extends SapphireTest
|
||||
|
||||
public function testGetExcludedSiteTreeClassNames()
|
||||
{
|
||||
$member = Security::getCurrentUser();
|
||||
|
||||
if ($member) {
|
||||
Security::setCurrentUser(null);
|
||||
}
|
||||
$this->logOut();
|
||||
|
||||
/**
|
||||
* @var Blog $blog
|
||||
@ -73,11 +69,7 @@ class BlogTest extends SapphireTest
|
||||
|
||||
public function testGetArchivedBlogPosts()
|
||||
{
|
||||
$member = Security::getCurrentUser();
|
||||
|
||||
if ($member) {
|
||||
Security::setCurrentUser(null);
|
||||
}
|
||||
$this->logOut();
|
||||
|
||||
/**
|
||||
* @var Blog $blog
|
||||
|
Loading…
Reference in New Issue
Block a user