You are here

public function HashTest::testEmptyTamperableItem in Tamper 8

Test the plugin behaviour without a tamperable item.

File

tests/src/Unit/Plugin/Tamper/HashTest.php, line 72

Class

HashTest
Tests the hash plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function testEmptyTamperableItem() {
  $this
    ->expectException(TamperException::class);
  $this
    ->expectExceptionMessage('Tamperable item can not be null.');
  $this->plugin
    ->tamper('foo');
}