1), 'ignoreB@example.com', 'return contact in translated ns with activated span_translations option' ), array( 'plugin', array(), false, 'return false for outside start-page without activated include_parent_startpage option' ), array( 'plugin', array('include_parent_startpage' => 1), 'ignoreB@example.com', 'return contact for outside start-page with activated include_parent_startpage option' ), ); } /** * @dataProvider getFeedbackContact_testdata */ public function test_getFeedbackContact ($input, $options, $expected_output, $message) { /** @var action_plugin_feedback $action */ $action = plugin_load('action', 'feedback'); global $conf; foreach ($options as $key => $value) { $conf['plugin']['feedback'][$key] = $value; } global $conf; $conf['plugin']['translation']['translations'] = 'en de fr es'; $trans = plugin_load('helper', 'translation', true); $actual_output = $action->getFeedbackContact($input); $this->assertEquals($expected_output, $actual_output, $message); } } // getFeedbackContact