Skip to content

Commit 3ceab83

Browse files
test import from file #140
1 parent cbd4382 commit 3ceab83

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

languages/visualizer.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ msgid ""
44
msgstr ""
55
"Project-Id-Version: Visualizer: Charts and Graphs Lite 2.0.0\n"
66
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/visualizer/issues\n"
7-
"POT-Creation-Date: 2017-03-15 13:43:24+00:00\n"
7+
"POT-Creation-Date: 2017-03-15 13:57:55+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"

tests/test-import.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ public function test_file_import( $file ) {
156156
* @access public
157157
*/
158158
public function fileProvider() {
159-
return [ [ VISUALIZER_ABSPATH . DIRECTORY_SEPARATOR . 'samples' . DIRECTORY_SEPARATOR . 'bar.csv' ] ];
159+
return array(
160+
array( VISUALIZER_ABSPATH . DIRECTORY_SEPARATOR . 'samples' . DIRECTORY_SEPARATOR . 'bar.csv' ),
161+
);
160162
}
161163

162164
/**
@@ -165,6 +167,8 @@ public function fileProvider() {
165167
* @access public
166168
*/
167169
public function urlProvider() {
168-
return [ [ 'http://localhost/wp-content/plugins/wp-visualizer/samples/bar.csv' ] ];
170+
return array(
171+
array( 'http://localhost/wp-content/plugins/wp-visualizer/samples/bar.csv' ),
172+
);
169173
}
170174
}

0 commit comments

Comments
 (0)