You are here

public function FeedsTamperRewriteTestCase::test in Feeds Tamper 6

Same name and namespace in other branches
  1. 7 tests/feeds_tamper_plugins.test \FeedsTamperRewriteTestCase::test()

File

tests/feeds_tamper_plugins.test, line 800
Unit tests for feeds tamper plugins.

Class

FeedsTamperRewriteTestCase
Tests for rewrite.inc

Code

public function test() {
  $settings = array(
    'text' => '[title] - [body]',
  );
  $input = array(
    'title' => 'HI YA!',
    'body' => "I'm the coolest.",
    'combined' => 'Blah, blah, blah',
  );
  $this
    ->executeRew($input, "HI YA! - I'm the coolest.", 'combined', $settings);
}