You are here

protected function ConflictWebTestCase::drupalSetContent in Conflict 7

Overrides DrupalWebTestCase::drupalSetContent().

Overrides DrupalWebTestCase::drupalSetContent

1 call to ConflictWebTestCase::drupalSetContent()
ConflictWebTestCase::drupalSwitchUser in ./conflict.test
Helper function to switch between user1 and user2.

File

./conflict.test, line 149
Tests for conflict.module.

Class

ConflictWebTestCase
@file Tests for conflict.module.

Code

protected function drupalSetContent($content, $url = 'internal:') {
  parent::drupalSetContent($content, $url);

  // Clone the relevant results onto the currently logged in user
  // account/session.
  if (isset($this->loggedInUser->session)) {
    $this->loggedInUser->session->url = $this->url;
    $this->loggedInUser->session->content = $this->content;
    $this->loggedInUser->session->drupalSettings = $this->drupalSettings;
  }
}