Changeset 42343 for trunk/tests/phpunit/tests/l10n/getUserLocale.php
- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/l10n/getUserLocale.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/l10n/getUserLocale.php
r40520 r42343 11 11 parent::setUp(); 12 12 13 $this->user_id = $this->factory()->user->create( array( 14 'role' => 'administrator', 15 'locale' => 'de_DE', 16 ) ); 13 $this->user_id = $this->factory()->user->create( 14 array( 15 'role' => 'administrator', 16 'locale' => 'de_DE', 17 ) 18 ); 17 19 18 20 wp_set_current_user( $this->user_id ); … … 86 88 87 89 public function test_user_id_argument_with_id() { 88 $user_id = $this->factory()->user->create( array( 89 'locale' => 'es_ES', 90 ) ); 90 $user_id = $this->factory()->user->create( 91 array( 92 'locale' => 'es_ES', 93 ) 94 ); 91 95 92 96 $user_locale1 = get_user_locale( $user_id ); … … 101 105 102 106 public function test_user_id_argument_with_wp_user_object() { 103 $user_id = $this->factory()->user->create( array( 104 'locale' => 'es_ES', 105 ) ); 107 $user_id = $this->factory()->user->create( 108 array( 109 'locale' => 'es_ES', 110 ) 111 ); 106 112 107 113 $user = get_user_by( 'id', $user_id );
Note: See TracChangeset
for help on using the changeset viewer.