2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Test for fetching event data from HTTP request
6 * @package phpMyAdmin-test
12 require_once 'libraries/rte/rte_events.lib.php';
14 class PMA_EVN_getDataFromRequest_test
extends PHPUnit_Framework_TestCase
17 * @dataProvider provider
19 public function testgetDataFromRequest_empty($in, $out)
24 foreach ($in as $key => $value) {
26 $_REQUEST[$key] = $value;
29 $this->assertEquals($out, PMA_EVN_getDataFromRequest());
32 public function provider()
39 'item_original_name' => '',
41 'item_execute_at' => '',
42 'item_interval_value' => '',
43 'item_interval_field' => '',
46 'item_definition' => '',
47 'item_preserve' => '',
53 'item_type' => 'ONE TIME',
54 'item_type_toggle' => 'RECURRING',
55 'item_original_name' => '',
57 'item_execute_at' => '',
58 'item_interval_value' => '',
59 'item_interval_field' => '',
62 'item_definition' => '',
63 'item_preserve' => '',
71 'item_type' => 'RECURRING',
72 'item_original_name' => 'foo',
73 'item_status' => 'foo',
74 'item_execute_at' => 'foo',
75 'item_interval_value' => 'foo',
76 'item_interval_field' => 'foo',
77 'item_starts' => 'foo',
79 'item_definition' => 'foo',
80 'item_preserve' => 'foo',
81 'item_comment' => 'foo',
82 'item_definer' => 'foo'
86 'item_type' => 'RECURRING',
87 'item_type_toggle' => 'ONE TIME',
88 'item_original_name' => 'foo',
89 'item_status' => 'foo',
90 'item_execute_at' => 'foo',
91 'item_interval_value' => 'foo',
92 'item_interval_field' => 'foo',
93 'item_starts' => 'foo',
95 'item_definition' => 'foo',
96 'item_preserve' => 'foo',
97 'item_comment' => 'foo',
98 'item_definer' => 'foo'