protected function CasUserInteractionTest::setUp in CAS 8
Same name and namespace in other branches
- 2.x tests/src/Functional/CasUserInteractionTest.php \Drupal\Tests\cas\Functional\CasUserInteractionTest::setUp()
 
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ CasUserInteractionTest.php, line 31  
Class
- CasUserInteractionTest
 - Tests inserting user interaction into the flow.
 
Namespace
Drupal\Tests\cas\FunctionalCode
protected function setUp() {
  parent::setUp();
  // Create a local user.
  $account = $this
    ->createUser([], 'beavis');
  // Create a CAS user.
  $this
    ->createCasUser('beavis', 'beavis@example.com', 'needtp', [
    'firstname' => 'Beavis',
    'lastname' => 'El Gran Cornholio',
  ], $account);
  // Place the login/logout block so that we can check if user is logged in.
  $this
    ->placeBlock('system_menu_block:account');
}