FIX updated deprecated Member::logout() calls

This commit is contained in:
Franco Springveldt 2017-09-14 11:28:43 +12:00
parent e70e051380
commit 0b5b71c0fb
4 changed files with 6 additions and 5 deletions

View File

@ -52,7 +52,7 @@ class BlogCategoryTest extends FunctionalTest
$member = Security::getCurrentUser();
if ($member) {
$member->logout();
Security::setCurrentUser(null);
}
$this->objFromFixture(BlogPost::class, 'FirstBlogPost');

View File

@ -42,7 +42,7 @@ class BlogPostFilterTest extends SapphireTest
$member = Security::getCurrentUser();
if ($member) {
$member->logout();
Security::setCurrentUser(null);
}
/**

View File

@ -10,6 +10,7 @@ use SilverStripe\Dev\FunctionalTest;
use SilverStripe\ORM\FieldType\DBDatetime;
use SilverStripe\ORM\ValidationException;
use SilverStripe\Security\Member;
use SilverStripe\Security\Security;
/**
* @mixin PHPUnit_Framework_TestCase
@ -51,7 +52,7 @@ class BlogTagTest extends FunctionalTest
$member = Security::getCurrentUser();
if ($member) {
$member->logout();
Security::setCurrentUser(null);
}
$this->objFromFixture(BlogPost::class, 'FirstBlogPost');

View File

@ -62,7 +62,7 @@ class BlogTest extends SapphireTest
$member = Security::getCurrentUser();
if ($member) {
$member->logout();
Security::setCurrentUser(null);
}
/**
@ -86,7 +86,7 @@ class BlogTest extends SapphireTest
$member = Security::getCurrentUser();
if ($member) {
$member->logout();
Security::setCurrentUser(null);
}
/**