Changeset 51367 for trunk/tests/phpunit/tests/user.php
- Timestamp:
- 07/07/2021 10:32:56 AM (5 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/user.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/user.php
r51335 r51367 768 768 $response = wpmu_validate_user_signup( $user_data['user_login'], $user_data['user_email'] ); 769 769 $this->assertInstanceOf( 'WP_Error', $response['errors'] ); 770 $this->assert Same( 0, count( $response['errors']->get_error_codes()) );770 $this->assertCount( 0, $response['errors']->get_error_codes() ); 771 771 } 772 772 … … 1729 1729 1730 1730 // Number of exported users. 1731 $this->assert Same( 1, count( $actual['data'] ));1731 $this->assertCount( 1, $actual['data'] ); 1732 1732 1733 1733 // Number of exported user properties. 1734 $this->assert Same( 11, count( $actual['data'][0]['data'] ));1734 $this->assertCount( 11, $actual['data'][0]['data'] ); 1735 1735 } 1736 1736 … … 1863 1863 1864 1864 // Number of exported users. 1865 $this->assert Same( 1, count( $actual['data'] ));1865 $this->assertCount( 1, $actual['data'] ); 1866 1866 1867 1867 // Number of exported user properties (the 11 core properties, 1868 1868 // plus 1 additional from the filter). 1869 $this->assert Same( 12, count( $actual['data'][0]['data'] ));1869 $this->assertCount( 12, $actual['data'][0]['data'] ); 1870 1870 1871 1871 // Check that the item added by the filter was retained. … … 1895 1895 1896 1896 // Number of exported users. 1897 $this->assert Same( 1, count( $actual['data'] ));1897 $this->assertCount( 1, $actual['data'] ); 1898 1898 1899 1899 // Number of exported user properties 1900 1900 // (the 11 core properties, plus 1 additional from the filter). 1901 $this->assert Same( 12, count( $actual['data'][0]['data'] ));1901 $this->assertCount( 12, $actual['data'][0]['data'] ); 1902 1902 1903 1903 // Check that the duplicate 'name' => 'User ID' was stripped.
Note: See TracChangeset
for help on using the changeset viewer.