@@ -24,7 +24,7 @@ public function test_image_import_url() {
24
24
25
25
// Check that NON-IMAGE URL returns invalid
26
26
$ import_info = array ();
27
- $ arguments = array ( 'a random string ' , 0 , 'Post Title ' , $ import_info , array () );
27
+ $ arguments = array ( 'a random string ' , 0 , 'Post Title ' , & $ import_info , array () );
28
28
$ response = $ try_save_featured_image ->invokeArgs ( $ feedzy , $ arguments );
29
29
30
30
$ this ->assertFalse ( $ response );
@@ -52,14 +52,14 @@ public function test_image_import_url() {
52
52
}, 10 , 5 );
53
53
54
54
$ import_info = array ();
55
- $ arguments = array ( 'https://example.com/path_to_image/image.jpeg ' , 0 , 'Post Title ' , $ import_info , array () );
55
+ $ arguments = array ( 'https://example.com/path_to_image/image.jpeg ' , 0 , 'Post Title ' , & $ import_info , array () );
56
56
$ response = $ try_save_featured_image ->invokeArgs ( $ feedzy , $ arguments );
57
57
58
58
// expected response is false because the image does not exist, but the URL is valid so no errors should be logged for URL validation
59
59
$ this ->assertFalse ( $ response );
60
60
61
61
$ import_info = array ();
62
- $ arguments = array ( 'https://example.com/path_to_image/image w space in name.jpeg ' , 0 , 'Post Title ' , $ import_info , array () );
62
+ $ arguments = array ( 'https://example.com/path_to_image/image w space in name.jpeg ' , 0 , 'Post Title ' , & $ import_info , array () );
63
63
$ response = $ try_save_featured_image ->invokeArgs ( $ feedzy , $ arguments );
64
64
65
65
// expected response is false because the image does not exist, but the URL is valid so no errors should be logged for URL validation
@@ -76,7 +76,7 @@ public function test_import_image_special_characters() {
76
76
$ import_errors = array ();
77
77
$ import_info = array ();
78
78
79
- $ arguments = array ( 'https://example.com/path_to_image/çöp.jpg?itok=ZYU_ihPB ' , 0 , 'Post Title ' , &$ import_errors , & $ import_info , array () );
79
+ $ arguments = array ( 'https://example.com/path_to_image/çöp.jpg?itok=ZYU_ihPB ' , 0 , 'Post Title ' , &$ import_info , array () );
80
80
$ response = $ try_save_featured_image ->invokeArgs ( $ feedzy , $ arguments );
81
81
82
82
// expected response is false because the image does not exist, but the URL is valid so no $import_errors should be set.
0 commit comments