You are here

public function FeedsTamperTrimTestCase::test in Feeds Tamper 7

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

File

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

Class

FeedsTamperTrimTestCase
Tests for trim.inc

Code

public function test() {
  $settings = array(
    'side' => 'trim',
  );
  $this
    ->execute('  asdfasf  ', 'asdfasf', $settings);
  $settings['side'] = 'ltrim';
  $this
    ->execute('  asdfasf  ', 'asdfasf  ', $settings);
  $settings['side'] = 'rtrim';
  $this
    ->execute('  asdfasf  ', '  asdfasf', $settings);
  $settings['side'] = 'trim';
  $settings['mask'] = '$';
  $this
    ->execute('$$asdfasf$$', 'asdfasf', $settings);
}