Drupal Test Helpers module API documentation - release 1.3.1

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

deleteAll()

{@inheritdoc}

public deleteAll([mixed $prefix = '' ]) : mixed
Parameters
$prefix : mixed = ''

listAll()

{@inheritdoc}

public listAll([mixed $prefix = '' ]) : mixed
Parameters
$prefix : 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>

        
On this page

Search results