Changeset 64746
- Timestamp:
- 10/26/2026 09:29:23 PM (4 days ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 12 edited
-
cache.php (modified) (1 diff)
-
db/realEscape.php (modified) (1 diff)
-
dependencies.php (modified) (1 diff)
-
dependencies/jquery.php (modified) (1 diff)
-
locale.php (modified) (2 diffs)
-
secrets/capabilities.php (modified) (1 diff)
-
secrets/errorCodes.php (modified) (1 diff)
-
secrets/wpSecret.php (modified) (2 diffs)
-
secrets/wpSecretsCipher.php (modified) (4 diffs)
-
secrets/wpSecretsConfigKeyProvider.php (modified) (2 diffs)
-
secrets/wpSecretsKeyManager.php (modified) (1 diff)
-
secrets/wpSecretsValidateName.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/cache.php
r64111 r64746 58 58 * } 59 59 */ 60 public function data_is_valid_key() {60 public static function data_is_valid_key() { 61 61 return array( 62 62 'false' => array( false, false ), -
trunk/tests/phpunit/tests/db/realEscape.php
r54711 r64746 34 34 * @var array 35 35 */ 36 public function data_real_escape_input_type_handling() {36 public static function data_real_escape_input_type_handling() { 37 37 return array( 38 38 'null' => array( -
trunk/tests/phpunit/tests/dependencies.php
r64585 r64746 155 155 * @return array[] 156 156 */ 157 public function data_provider_get_etag() {157 public static function data_provider_get_etag() { 158 158 return array( 159 159 'should accept one dependency' => array( -
trunk/tests/phpunit/tests/dependencies/jquery.php
r63983 r64746 58 58 * @return array<non-falsy-string, array{ 0: non-falsy-string }> 59 59 */ 60 public function data_jquery_files_exist(): array {60 public static function data_jquery_files_exist(): array { 61 61 return array( 62 62 'jquery' => array( 'jquery.js' ), -
trunk/tests/phpunit/tests/locale.php
r55279 r64746 36 36 * @return array 37 37 */ 38 public function data_property_initializes_to_array() {38 public static function data_property_initializes_to_array() { 39 39 return array( 40 40 'weekday' => array( 'weekday' ), … … 202 202 * @return array[] 203 203 */ 204 public function data_get_word_count_type() {204 public static function data_get_word_count_type() { 205 205 return array( 206 206 'default' => array( -
trunk/tests/phpunit/tests/secrets/capabilities.php
r64337 r64746 90 90 * @return array<string, array{0: int, 1: bool}> 91 91 */ 92 public function data_upgrade_720_gate() {92 public static function data_upgrade_720_gate() { 93 93 return array( 94 94 'upgrading from 7.0' => array( 61644, true ), -
trunk/tests/phpunit/tests/secrets/errorCodes.php
r64337 r64746 21 21 * @return array<string, array{0: string, 1: string}> 22 22 */ 23 public function data_published_error_codes() {23 public static function data_published_error_codes() { 24 24 return array( 25 25 'decryption failed' => array( 'WP_SECRETS_ERROR_DECRYPTION_FAILED', 'secret_decryption_failed' ), -
trunk/tests/phpunit/tests/secrets/wpSecret.php
r64337 r64746 91 91 * @return array<string, array{0: callable( WP_Secret ): ( string|false )}> 92 92 */ 93 public function data_masking_surfaces() {93 public static function data_masking_surfaces() { 94 94 return array( 95 95 '(string) cast' => array( … … 206 206 * @return array<string, array{0: string, 1: array<int, mixed>}> 207 207 */ 208 public function data_refusing_magic_methods() {208 public static function data_refusing_magic_methods() { 209 209 return array( 210 210 '__sleep' => array( '__sleep', array() ), -
trunk/tests/phpunit/tests/secrets/wpSecretsCipher.php
r64337 r64746 91 91 * @return array<string, array{0: string}> 92 92 */ 93 public function data_bad_master_keys() {93 public static function data_bad_master_keys() { 94 94 return array( 95 95 'too short' => array( str_repeat( 'a', 31 ) ), … … 168 168 * @return array<string, array{0: string, 1: int, 2: string, 3: string}> 169 169 */ 170 public function data_mismatched_context() {170 public static function data_mismatched_context() { 171 171 return array( 172 172 'different scope' => array( 'network', 1, self::NAME, WP_Secret_Version::CURRENT ), … … 215 215 * @return array<string, array{0: string}> 216 216 */ 217 public function data_tamperable_fields() {217 public static function data_tamperable_fields() { 218 218 return array( 219 219 'ciphertext' => array( 'ct' ), … … 241 241 * @return array<string, array{0: mixed}> 242 242 */ 243 public function data_malformed_records() {243 public static function data_malformed_records() { 244 244 return array( 245 245 'not an array' => array( 'just a string' ), -
trunk/tests/phpunit/tests/secrets/wpSecretsConfigKeyProvider.php
r64337 r64746 132 132 * @return array<string, array{0: string|int, 1: bool}> 133 133 */ 134 public function data_canonical_base64_32(): array {134 public static function data_canonical_base64_32(): array { 135 135 return array( 136 136 'exactly 32 bytes, canonical encoding' => array( base64_encode( str_repeat( 'A', 32 ) ), true ), … … 160 160 * @return array<string, array{0: string|int|null, 1: string, 2: bool}> 161 161 */ 162 public function data_usable_salt_values(): array {162 public static function data_usable_salt_values(): array { 163 163 return array( 164 164 'both usable' => array( 'a real key', 'a real salt', true ), -
trunk/tests/phpunit/tests/secrets/wpSecretsKeyManager.php
r64337 r64746 122 122 * @return array<string, array{0: int}> 123 123 */ 124 public function data_invalid_site_ids(): array {124 public static function data_invalid_site_ids(): array { 125 125 return array( 126 126 'zero' => array( 0 ), -
trunk/tests/phpunit/tests/secrets/wpSecretsValidateName.php
r64337 r64746 17 17 * @return array<string, array{0: string}> 18 18 */ 19 public function data_valid_names(): array {19 public static function data_valid_names(): array { 20 20 return array( 21 21 'simple' => array( 'myplugin/api-key' ), … … 61 61 * @return array<string, array{0: string}> 62 62 */ 63 public function data_unnamespaced_names(): array {63 public static function data_unnamespaced_names(): array { 64 64 return array( 65 65 'simple' => array( 'api_key' ), … … 85 85 * @return array<string, array{0: string}> 86 86 */ 87 public function data_invalid_names(): array {87 public static function data_invalid_names(): array { 88 88 return array( 89 89 'empty string' => array( '' ),
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)