Changeset 51331 for trunk/tests/phpunit/tests/user.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r50935 r51331 217 217 $user->init( $user->data ); 218 218 219 $this->assertI nternalType( 'int',$user->ID );219 $this->assertIsInt( $user->ID ); 220 220 } 221 221 } … … 871 871 ); 872 872 873 $this->assertI nternalType( 'int',$u );873 $this->assertIsInt( $u ); 874 874 $this->assertGreaterThan( 0, $u ); 875 875 … … 1494 1494 $user = get_user_by( 'ID', $user_id ); 1495 1495 1496 $this->assertI nternalType( 'int',$user_id );1496 $this->assertIsInt( $user_id ); 1497 1497 $this->assertInstanceOf( 'WP_User', $user ); 1498 1498 $this->assertSame( 'nickname1', $user->nickname ); … … 1505 1505 $user_id = edit_user( $user_id ); 1506 1506 1507 $this->assertI nternalType( 'int',$user_id );1507 $this->assertIsInt( $user_id ); 1508 1508 $this->assertSame( 'nickname_updated', $user->nickname ); 1509 1509 … … 1517 1517 $user = get_user_by( 'ID', $user_id ); 1518 1518 1519 $this->assertI nternalType( 'int',$user_id );1519 $this->assertIsInt( $user_id ); 1520 1520 $this->assertSame( $old_pass, $user->user_pass ); 1521 1521 … … 1536 1536 remove_action( 'check_passwords', array( $this, 'action_check_passwords_blank_password' ) ); 1537 1537 1538 $this->assertI nternalType( 'int',$user_id );1538 $this->assertIsInt( $user_id ); 1539 1539 $this->assertSame( 'nickname_updated2', $user->nickname ); 1540 1540 }
Note: See TracChangeset
for help on using the changeset viewer.