mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Update session references
This commit is contained in:
parent
21e204cc59
commit
7fe808da29
@ -125,7 +125,7 @@ class CMSMainTest extends FunctionalTest
|
||||
{
|
||||
$page1 = $this->objFromFixture(Page::class, "page1");
|
||||
$page2 = $this->objFromFixture(Page::class, "page2");
|
||||
$this->session()->inst_set('loggedInAs', $this->idFromFixture('SilverStripe\\Security\\Member', 'admin'));
|
||||
$this->session()->set('loggedInAs', $this->idFromFixture('SilverStripe\\Security\\Member', 'admin'));
|
||||
|
||||
$response = $this->get('admin/pages/publishall?confirm=1');
|
||||
$this->assertContains(
|
||||
|
@ -198,7 +198,7 @@ class SiteTreePermissionsTest extends FunctionalTest
|
||||
'Users without SITETREE_GRANT_ACCESS permission cannot change "edit" permissions in cms fields'
|
||||
);
|
||||
|
||||
$this->session()->inst_set('loggedInAs', null);
|
||||
$this->session()->set('loggedInAs', null);
|
||||
}
|
||||
|
||||
public function testRestrictedViewLoggedInUsers()
|
||||
|
@ -9,7 +9,7 @@ class CMSMainSearchFormTest extends FunctionalTest
|
||||
|
||||
public function testTitleFilter()
|
||||
{
|
||||
$this->session()->inst_set('loggedInAs', $this->idFromFixture('SilverStripe\\Security\\Member', 'admin'));
|
||||
$this->session()->set('loggedInAs', $this->idFromFixture('SilverStripe\\Security\\Member', 'admin'));
|
||||
|
||||
$response = $this->get(
|
||||
'admin/pages/SearchForm/?' .
|
||||
|
Loading…
x
Reference in New Issue
Block a user