You are here

public function FeedsTamperTrimTestCase::test in Feeds Tamper 6

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

File

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