You are here

protected function PanelizerIpeTest::loginUser1 in Panelizer 8.3

Log in as user 1.

2 calls to PanelizerIpeTest::loginUser1()
PanelizerIpeTest::setupContentType in src/Tests/PanelizerIpeTest.php
Prep a content type for use with these tests.
PanelizerIpeTest::testAdminUser in src/Tests/PanelizerIpeTest.php
Test that the IPE functionality as user 1, which should cover all options.

File

src/Tests/PanelizerIpeTest.php, line 72

Class

PanelizerIpeTest
Confirm that the IPE functionality works.

Namespace

Drupal\panelizer\Tests

Code

protected function loginUser1() {

  // Log in as user 1.
  $account = User::load(1);
  $account
    ->setPassword('foo')
    ->save();
  $account->pass_raw = 'foo';
  $this
    ->drupalLogin($account);
}