Making WordPress.org


Ignore:
Timestamp:
09/28/2020 02:51:03 AM (6 years ago)
Author:
dd32
Message:

Update to PHPUnit Test Reporter 0.1.3.

Props pfefferle.
Fixes #5447.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter

    • Property svn:ignore
      •  

        old new  
        22Makefile
        33README.md
         4CODE_OF_CONDUCT.md
         5CONTRIBUTING.md
        46docker-compose.yml
        57node_modules
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/src/class-restapi.php

    r9884 r10290  
    2020                                'args'                => array(
    2121                                        'commit'  => array(
    22                                                 'required'          => true,
    23                                                 'description'       => 'The SVN commit changeset number.',
    24                                                 'type'              => 'numeric',
    25                                                 'validate_callback' => array( __CLASS__, 'validate_callback' ),
     22                                                'required'    => true,
     23                                                'description' => 'The SVN commit changeset number.',
     24                                                'type'        => 'integer',
    2625                                        ),
    2726                                        'results' => array(
     
    5150        public static function validate_callback( $value, $request, $key ) {
    5251                switch ( $key ) {
    53                         case 'commit':
    54                                 if ( ! is_numeric( $value ) ) {
    55                                         return new WP_Error(
    56                                                 'rest_invalid',
    57                                                 __( 'Value must be numeric.', 'ptr' ),
    58                                                 array(
    59                                                         'status' => 400,
    60                                                 )
    61                                         );
    62                                 }
    63                                 return true;
    6452                        case 'message':
    6553                                if ( empty( $value ) || ! is_string( $value ) ) {
Note: See TracChangeset for help on using the changeset viewer.