@@ 24-57 (lines=34) @@ | ||
21 | * |
|
22 | * @return array array data for testLinkToReport |
|
23 | */ |
|
24 | public function providerForTestLinkToReport() { |
|
25 | return array( |
|
26 | array( |
|
27 | array( |
|
28 | 'id' => 116273, |
|
29 | 'error_message' => 'TypeError: url is undefined', |
|
30 | 'error_name' => null, |
|
31 | 'pma_version' => '4.7.1', |
|
32 | 'status' => 'new', |
|
33 | 'location' => 'index.js', |
|
34 | 'linenumber' => 154, |
|
35 | 'sourceforge_bug_id' => null, |
|
36 | 'related_to' => 12567, |
|
37 | 'exception_type' => 'js' |
|
38 | ), |
|
39 | '<a href=/reports/view/116273>#116273</a>' |
|
40 | ), |
|
41 | array( |
|
42 | array( |
|
43 | 'id' => 1879, |
|
44 | 'error_message' => 'TypeError: url is undefined', |
|
45 | 'error_name' => null, |
|
46 | 'pma_version' => '4.1.6', |
|
47 | 'status' => 'new', |
|
48 | 'location' => 'common.js', |
|
49 | 'linenumber' => 154, |
|
50 | 'sourceforge_bug_id' => null, |
|
51 | 'related_to' => null, |
|
52 | 'exception_type' => 'php' |
|
53 | ), |
|
54 | '<a href=/reports/view/1879>#1879</a>' |
|
55 | ) |
|
56 | ); |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * @dataProvider providerForTestLinkToReport |
|
@@ 77-111 (lines=35) @@ | ||
74 | * |
|
75 | * return array array data to testCreateReportsLinks |
|
76 | */ |
|
77 | public function providerForTestCreateReportsLinks() |
|
78 | { |
|
79 | return array( |
|
80 | array( |
|
81 | array( |
|
82 | array( |
|
83 | 'id' => 116273, |
|
84 | 'error_message' => 'TypeError: url is undefined', |
|
85 | 'error_name' => null, |
|
86 | 'pma_version' => '4.7.1', |
|
87 | 'status' => 'new', |
|
88 | 'location' => 'index.js', |
|
89 | 'linenumber' => 154, |
|
90 | 'sourceforge_bug_id' => null, |
|
91 | 'related_to' => 12567, |
|
92 | 'exception_type' => 'js' |
|
93 | ), |
|
94 | array( |
|
95 | 'id' => 1879, |
|
96 | 'error_message' => 'TypeError: url is undefined', |
|
97 | 'error_name' => null, |
|
98 | 'pma_version' => '4.1.6', |
|
99 | 'status' => 'new', |
|
100 | 'location' => 'common.js', |
|
101 | 'linenumber' => 154, |
|
102 | 'sourceforge_bug_id' => null, |
|
103 | 'related_to' => null, |
|
104 | 'exception_type' => 'php' |
|
105 | ), |
|
106 | ), |
|
107 | '<a href=/reports/view/116273>#116273</a>, ' |
|
108 | . '<a href=/reports/view/1879>#1879</a>' |
|
109 | ) |
|
110 | ); |
|
111 | } |
|
112 | ||
113 | ||
114 | /** |