You are here

public function FeedsTamperTruncateTextTestCase::test in Feeds Tamper 6

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

File

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

Class

FeedsTamperTruncateTextTestCase
Tests for truncate_text.inc

Code

public function test() {
  $this
    ->execute('Hello, how are you today?', 'Hello', array(
    'num_char' => 5,
    'ellipses' => FALSE,
  ));
  $this
    ->execute('Hello, how are you today?', 'H ...', array(
    'num_char' => 5,
    'ellipses' => TRUE,
  ));
  $this
    ->execute('Hello', 'Hello', array(
    'num_char' => 5,
    'ellipses' => TRUE,
  ));
}