Changeset 43571 for trunk/tests/phpunit/tests/user.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r43390 r43571 907 907 public function test_wp_insert_user_should_not_truncate_to_a_duplicate_user_nicename_when_suffix_has_more_than_one_character() { 908 908 $user_ids = self::factory()->user->create_many( 909 4, array( 909 4, 910 array( 910 911 'user_nicename' => str_repeat( 'a', 50 ), 911 912 ) … … 1557 1558 $_POST['email'] = 'subscriber@subscriber.test'; 1558 1559 $_POST['nickname'] = 'subscriber'; 1559 $this->assertSame( 1560 $this->assertSame( $administrator, edit_user( $administrator ) ); 1560 1561 1561 1562 // Should still have the old role. … … 1572 1573 $_POST['email'] = 'administrator@administrator.test'; 1573 1574 $_POST['nickname'] = 'administrator'; 1574 $this->assertSame( 1575 $this->assertSame( $editor, edit_user( $editor ) ); 1575 1576 1576 1577 // Should have the new role.
Note: See TracChangeset
for help on using the changeset viewer.