Changeset 48939 for trunk/tests/phpunit/tests/ajax/UpdatePlugin.php
- Timestamp:
- 09/04/2020 07:01:00 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/UpdatePlugin.php
r48445 r48939 42 42 ); 43 43 44 $this->assert EqualSets( $expected, $response );44 $this->assertSameSets( $expected, $response ); 45 45 } 46 46 … … 68 68 ); 69 69 70 $this->assert EqualSets( $expected, $response );70 $this->assertSameSets( $expected, $response ); 71 71 } 72 72 … … 91 91 'update' => 'plugin', 92 92 'slug' => 'foo', 93 'errorMessage' => 'Sorry, you are not allowed to update plugins for this site.',94 93 'oldVersion' => '', 95 94 'newVersion' => '', 95 'errorMessage' => 'Sorry, you are not allowed to update plugins for this site.', 96 96 ), 97 97 ); 98 98 99 $this->assert EqualSets( $expected, $response );99 $this->assertSameSets( $expected, $response ); 100 100 } 101 101 … … 122 122 'update' => 'plugin', 123 123 'slug' => 'foo', 124 'errorMessage' => 'Sorry, you are not allowed to update plugins for this site.',125 124 'oldVersion' => '', 126 125 'newVersion' => '', 126 'errorMessage' => 'Sorry, you are not allowed to update plugins for this site.', 127 127 ), 128 128 ); 129 129 130 $this->assert EqualSets( $expected, $response );130 $this->assertSameSets( $expected, $response ); 131 131 } 132 132 … … 156 156 'update' => 'plugin', 157 157 'slug' => 'hello-dolly', 158 'oldVersion' => 'Version 1.7.2', 159 'newVersion' => '', 158 160 'plugin' => 'hello.php', 159 161 'pluginName' => 'Hello Dolly', 162 'debug' => array( 'The plugin is at the latest version.' ), 160 163 'errorMessage' => 'The plugin is at the latest version.', 161 'oldVersion' => 'Version 1.7.2',162 'newVersion' => '',163 'debug' => array( 'The plugin is at the latest version.' ),164 164 ), 165 165 ); 166 166 167 $this->assert EqualSets( $expected, $response );167 $this->assertSameSets( $expected, $response ); 168 168 } 169 169 }
Note: See TracChangeset
for help on using the changeset viewer.