Namespace
Drupal\Tests\rules\Unit
File
-
tests/src/Unit/TestSessionBase.php
View source
<?php
namespace Drupal\Tests\rules\Unit;
use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag;
abstract class TestSessionBase implements SessionInterface {
protected $logs = [];
public function all() : array {
}
public function clear() {
}
public function getBag($name) : SessionBagInterface {
}
public function getId() : string {
}
public function getMetadataBag() : MetadataBag {
}
public function getName() : string {
}
public function has($name) : bool {
}
public function invalidate($lifetime = NULL) : bool {
}
public function isStarted() : bool {
}
public function migrate($destroy = FALSE, $lifetime = NULL) : bool {
}
public function registerBag(SessionBagInterface $bag) {
}
public function replace(array $attributes) {
}
public function save() {
}
public function set($key, $value) {
$this->logs[$key] = $value;
}
public function setId($id) {
}
public function setName($name) {
}
public function start() : bool {
}
}
Classes
| Title |
Deprecated |
Summary |
| TestSessionBase |
|
Implements just the methods we need for the Rules unit tests. |