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
Code
public function test() {
$this
->execute('asdfasdf', 'HELLO', array(
'default_value' => 'HELLO',
));
$this
->execute(array(
'asdfasdf',
), 'HELLO', array(
'default_value' => 'HELLO',
));
// Test default value.
$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,
));
}