Skip to content

Commit 5f0f96f

Browse files
committed
Use default login credentials
1 parent 0ba0995 commit 5f0f96f

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

bin/wp-env-setup.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ set -e
55

66
WP_ENV="./node_modules/.bin/wp-env"
77

8-
echo "Setting admin password..."
9-
$WP_ENV run cli wp user update 1 --user_pass=admin --allow-root
10-
118
echo "Creating test users..."
129
$WP_ENV run cli wp user create author author@local.test --role=author --user_pass=author --allow-root 2>/dev/null || true
1310
$WP_ENV run cli wp user create editor editor@local.test --role=editor --user_pass=editor --allow-root 2>/dev/null || true

tests/Browser/BrowserTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function asUser($login, $password)
3333

3434
protected function asAdmin()
3535
{
36-
return $this->asUser('admin', 'admin');
36+
return $this->asUser('admin', 'password');
3737
}
3838

3939
protected function asAuthor()

tests/Pest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function asUser(string $login, string $password)
5656

5757
function asAdmin()
5858
{
59-
return asUser('admin', 'admin');
59+
return asUser('admin', 'password');
6060
}
6161

6262
function asAuthor()

0 commit comments

Comments
 (0)