You are here

public function FeedsTamperMathTestCase::test in Feeds Tamper 6

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

File

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

Class

FeedsTamperMathTestCase
Tests for math.inc

Code

public function test() {
  $settings = array(
    'operation' => 'addition',
    'value' => '2',
  );
  $this
    ->execute(2, 4, $settings);
  $settings['operation'] = 'subtraction';
  $this
    ->execute(2, 0, $settings);
  $settings['operation'] = 'multiplication';
  $this
    ->execute(2, 4, $settings);
  $settings['operation'] = 'division';
  $this
    ->execute(2, 1, $settings);
}