Skip to content

Commit

Permalink
keep fixed test data for rest-plugins-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Jan 29, 2024
1 parent c5d38ce commit 014d45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/tests/rest-api/rest-plugins-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ protected function check_get_plugin_data( $data, $network_only = false ) {
$this->assertSame( 'My &#8216;Cool&#8217; Plugin <cite>By <a href="https://wordpress.org/">WordPress.org</a>.</cite>', $data['description']['rendered'] );
$this->assertSame( $network_only, $data['network_only'] );
$this->assertSame( '5.6.0', $data['requires_php'] );
$this->assertSame( '5.4.0', $data['requires_wp'] );
$this->assertSame( '5.4', $data['requires_wp'] );
$this->assertSame( 'test-plugin', $data['textdomain'] );
}

Expand Down Expand Up @@ -1120,7 +1120,7 @@ private function create_test_plugin( $network_only = false ) {
* Author URI: https://wordpress.org/
* Text Domain: test-plugin
* Requires PHP: 5.6.0
* Requires at least: 5.4.0{$network}
* Requires at least: 5.4{$network}
*/
PHP;
wp_mkdir_p( WP_PLUGIN_DIR . '/test-plugin' );
Expand Down

0 comments on commit 014d45d

Please sign in to comment.