You are here

public function RewriteTest::testRewrite in Tamper 8

Tests the rewrite functionality.

File

tests/src/Unit/Plugin/Tamper/RewriteTest.php, line 47

Class

RewriteTest
Tests the rewrite plugin.

Namespace

Drupal\Tests\tamper\Unit\Plugin\Tamper

Code

public function testRewrite() {
  $this
    ->assertEquals('Yay title! - Yay body!', $this->plugin
    ->tamper('foo', $this
    ->getMockItem()));
}