class TestSessionBase

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

Hierarchy

  • class \Drupal\Tests\rules\Unit\TestSessionBase implements \Symfony\Component\HttpFoundation\Session\SessionInterface

Expanded class hierarchy of TestSessionBase

File

tests/src/Unit/TestSessionBase.php, line 12

Namespace

Drupal\Tests\rules\Unit
View source
abstract class TestSessionBase implements SessionInterface {
    
    /**
     * Simulated session storage.
     *
     * @var array
     */
    protected $logs = [];
    
    /**
     * {@inheritdoc}
     */
    public function all() : array {
    }
    
    /**
     * {@inheritdoc}
     */
    public function clear() {
    }
    
    /**
     * {@inheritdoc}
     */
    public function getBag($name) : SessionBagInterface {
    }
    
    /**
     * {@inheritdoc}
     */
    public function getId() : string {
    }
    
    /**
     * {@inheritdoc}
     */
    public function getMetadataBag() : MetadataBag {
    }
    
    /**
     * {@inheritdoc}
     */
    public function getName() : string {
    }
    
    /**
     * {@inheritdoc}
     */
    public function has($name) : bool {
    }
    
    /**
     * {@inheritdoc}
     */
    public function invalidate($lifetime = NULL) : bool {
    }
    
    /**
     * {@inheritdoc}
     */
    public function isStarted() : bool {
    }
    
    /**
     * {@inheritdoc}
     */
    public function migrate($destroy = FALSE, $lifetime = NULL) : bool {
    }
    
    /**
     * {@inheritdoc}
     */
    public function registerBag(SessionBagInterface $bag) {
    }
    
    /**
     * {@inheritdoc}
     */
    public function replace(array $attributes) {
    }
    
    /**
     * {@inheritdoc}
     */
    public function save() {
    }
    
    /**
     * {@inheritdoc}
     */
    public function set($key, $value) {
        $this->logs[$key] = $value;
    }
    
    /**
     * {@inheritdoc}
     */
    public function setId($id) {
    }
    
    /**
     * {@inheritdoc}
     */
    public function setName($name) {
    }
    
    /**
     * {@inheritdoc}
     */
    public function start() : bool {
    }

}

Members

Title Sort descending Modifiers Object type Summary
TestSessionBase::$logs protected property Simulated session storage.
TestSessionBase::all public function
TestSessionBase::clear public function
TestSessionBase::getBag public function
TestSessionBase::getId public function
TestSessionBase::getMetadataBag public function
TestSessionBase::getName public function
TestSessionBase::has public function
TestSessionBase::invalidate public function
TestSessionBase::isStarted public function
TestSessionBase::migrate public function
TestSessionBase::registerBag public function
TestSessionBase::replace public function
TestSessionBase::save public function
TestSessionBase::set public function
TestSessionBase::setId public function
TestSessionBase::setName public function
TestSessionBase::start public function