You are here

public function FeedsTamperRewriteTestCase::test in Feeds Tamper 7

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

File

tests/feeds_tamper_plugins.test, line 896
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);
}