mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 10:05:43 +03:00
Tests: Update infrastructure & add travis config (#100)
* Tests: Move tests infrastructure, set up travis Consolidates the composer files so we can run install once in travis. * Return empty array if no values are $_POST'ed to the form Fixes an issue with tests + null values in logs * Clean up some naming & create helper functions for tests * Debug travis * Remove debug * Fix notices on form * Turn on multisite flag
This commit is contained in:
parent
5c2041442a
commit
03949905c0
12 changed files with 2705 additions and 2583 deletions
|
@ -354,7 +354,12 @@ function get_form_submission() {
|
|||
)
|
||||
);
|
||||
|
||||
return filter_input_array( INPUT_POST, $input_filters );
|
||||
$result = filter_input_array( INPUT_POST, $input_filters );
|
||||
if ( ! $result ) {
|
||||
return array_fill_keys( array_keys( $input_filters ), '' );
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue