You are here

public function TestSession::get in Rules 8.3

File

tests/src/Unit/TestSession.php, line 35

Class

TestSession
Implements just the methods we need for the Rules unit tests.

Namespace

Drupal\Tests\rules\Unit

Code

public function get($key, $default = NULL) {
  if (isset($this->logs[$key])) {
    return $this->logs[$key];
  }
  else {
    return $default;
  }
}