public function FeedsTamperDefaultValueTestCase::test in Feeds Tamper 7        
                          
                  
                        Same name and namespace in other branches
- 6 tests/feeds_tamper_plugins.test \FeedsTamperDefaultValueTestCase::test()
File
 
   - tests/feeds_tamper_plugins.test, line 299
- Unit tests for feeds tamper plugins.
Class
  
  - FeedsTamperDefaultValueTestCase 
- Tests for default_value.inc
Code
public function test() {
  $this
    ->execute('asdfasdf', 'HELLO', array(
    'default_value' => 'HELLO',
  ));
  $this
    ->execute(array(
    'asdfasdf',
  ), 'HELLO', array(
    'default_value' => 'HELLO',
  ));
  
  $this
    ->execute(array(), 'HELLO', array(
    'default_value' => 'HELLO',
    'only_if_empty' => TRUE,
  ));
  $this
    ->execute(array(
    1,
  ), array(
    1,
  ), array(
    'default_value' => 'HELLO',
    'only_if_empty' => TRUE,
  ));
}