function PhpStorageTestBase::additionalAssertCRUD

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase::additionalAssertCRUD()
  2. 8.9.x core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase::additionalAssertCRUD()
  3. 11.x core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php \Drupal\Tests\Component\PhpStorage\PhpStorageTestBase::additionalAssertCRUD()

Additional asserts to be run.

Parameters

\Drupal\Component\PhpStorage\PhpStorageInterface $php: The PHP storage object.

string $name: The name of an object. It should exist in the storage.

1 call to PhpStorageTestBase::additionalAssertCRUD()
PhpStorageTestBase::assertCRUD in core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php
Assert that a PHP storage's load/save/delete operations work.

File

core/tests/Drupal/Tests/Component/PhpStorage/PhpStorageTestBase.php, line 79

Class

PhpStorageTestBase
Base test for PHP storages.

Namespace

Drupal\Tests\Component\PhpStorage

Code

protected function additionalAssertCRUD(PhpStorageInterface $php, $name) {
    // By default do not do any additional asserts. This is a way of extending
    // tests in contrib.
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.