DatabaseStorageStub
extends DatabaseStorage
in package
A stub of the Drupal's default Connection class.
@package TestHelpers\DrupalServiceStubs
Table of Contents
Properties
- $stubStorage : array<string|int, mixed>
- A static storage for stored items.
Methods
- delete() : mixed
- {@inheritdoc}
- deleteAll() : mixed
- {@inheritdoc}
- exists() : mixed
- {@inheritdoc}
- listAll() : mixed
- {@inheritdoc}
- read() : mixed
- {@inheritdoc}
- readMultiple() : mixed
- {@inheritdoc}
- rename() : mixed
- {@inheritdoc}
- write() : mixed
- {@inheritdoc}
Properties
$stubStorage
A static storage for stored items.
protected
array<string|int, mixed>
$stubStorage
= []
Methods
delete()
{@inheritdoc}
public
delete(mixed $name) : mixed
Parameters
- $name : mixed
deleteAll()
{@inheritdoc}
public
deleteAll([mixed $prefix = '' ]) : mixed
Parameters
- $prefix : mixed = ''
exists()
{@inheritdoc}
public
exists(mixed $name) : mixed
Parameters
- $name : mixed
listAll()
{@inheritdoc}
public
listAll([mixed $prefix = '' ]) : mixed
Parameters
- $prefix : mixed = ''
read()
{@inheritdoc}
public
read(mixed $name) : mixed
Parameters
- $name : mixed
readMultiple()
{@inheritdoc}
public
readMultiple(array<string|int, mixed> $names) : mixed
Parameters
- $names : array<string|int, mixed>
rename()
{@inheritdoc}
public
rename(mixed $name, mixed $new_name) : mixed
Parameters
- $name : mixed
- $new_name : mixed
write()
{@inheritdoc}
public
write(mixed $name, array<string|int, mixed> $data) : mixed
Parameters
- $name : mixed
- $data : array<string|int, mixed>