Making WordPress.org


Ignore:
Timestamp:
08/25/2017 08:17:03 AM (7 years ago)
Author:
tellyworth
Message:

Plugin directory: soft launch support for Requires PHP header in readme.txt. Props @SergeyBiryukov

See #2952

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/wporg-plugin-api.php

    r4900 r5841  
    2424        'tested'            => true,
    2525        'requires'          => true,
     26        'requires_php'      => true,
    2627        'rating'            => true,
    2728        'ratings'           => true,
     
    242243            $this->assertAttributeInternalType( 'string', 'tested', $plugin_info, 'Tested should be a string' );
    243244        }
     245        $this->assertObjectHasAttribute( 'requires_php', $plugin_info, 'Requires PHP exists' );
    244246        $this->assertObjectHasAttribute( 'compatibility', $plugin_info, 'Compatibility exists' );
    245247        $this->assertAttributeInternalType( 'array', 'compatibility', $plugin_info, 'Compatibility should be an array' );
Note: See TracChangeset for help on using the changeset viewer.