Changeset 60253 for trunk/tests/phpunit/tests/auth.php
- Timestamp:
- 05/26/2025 02:34:12 PM (9 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/auth.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/auth.php
r60124 r60253 1580 1580 */ 1581 1581 public function test_application_password_authentication() { 1582 $user_id = self::factory()->user->create( 1583 array( 1584 'user_login' => 'http_auth_login', 1585 'user_pass' => 'http_auth_pass', // Shouldn't be allowed for API login. 1586 ) 1587 ); 1582 $user_id = self::$_user->ID; 1588 1583 1589 1584 // Create a new app-only password. … … 1595 1590 1596 1591 // Fake an HTTP Auth request with the regular account password first. 1597 $_SERVER['PHP_AUTH_USER'] = 'http_auth_login';1598 $_SERVER['PHP_AUTH_PW'] = 'http_auth_pass';1592 $_SERVER['PHP_AUTH_USER'] = self::USER_LOGIN; 1593 $_SERVER['PHP_AUTH_PW'] = self::USER_PASS; 1599 1594 1600 1595 $this->assertNull(
Note: See TracChangeset
for help on using the changeset viewer.