Index: sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/wporg-plugin-api.php
===================================================================
--- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/wporg-plugin-api.php (revision 4724)
+++ sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tests/phpunit/tests/wporg-plugin-api.php (revision 4900)
@@ -249,4 +249,5 @@
$this->assertObjectHasAttribute( 'ratings', $plugin_info, 'Ratings exists' );
$this->assertAttributeInternalType( 'array', 'ratings', $plugin_info, 'Ratings should be an array' );
+ $this->assertEquals( array( 5, 4, 3, 2, 1 ), array_keys( $plugin_info->ratings ), 'Ratings should be ordered from 5 to 1' );
$this->assertArrayHasKey( '1', $plugin_info->ratings, 'Rating should have an attribute of 1' );
$this->assertArrayHasKey( '2', $plugin_info->ratings, 'Rating should have an attribute of 2' );