From e220c2706603125827048fa8ee16bd42dac8b8e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torben=20H=C3=B6hn?= Date: Mon, 25 Nov 2024 21:54:17 +0100 Subject: [PATCH] adjust further configs and tests --- .../Unit/Controller/Adminhtml/User/DeleteTest.php | 10 +++++----- .../config/install-config-mysql.php.dist | 6 +++--- .../integration/etc/install-config-mysql.php.dist | 6 +++--- .../testsuite/Magento/User/Model/UserTest.php | 12 ++++++------ .../etc/install-config-mysql.php.dist | 6 +++--- .../Test/Unit/Console/Command/InstallCommandTest.php | 6 +++--- .../Setup/Test/Unit/Model/AdminAccountTest.php | 6 +++--- 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/app/code/Magento/User/Test/Unit/Controller/Adminhtml/User/DeleteTest.php b/app/code/Magento/User/Test/Unit/Controller/Adminhtml/User/DeleteTest.php index 5d2fb82d67097..a2fd4e34eb954 100644 --- a/app/code/Magento/User/Test/Unit/Controller/Adminhtml/User/DeleteTest.php +++ b/app/code/Magento/User/Test/Unit/Controller/Adminhtml/User/DeleteTest.php @@ -1,7 +1,7 @@ '123123q', + 'currentUserPassword' => '1234512345q!', 'userId' => 1, 'currentUserId' => 2, 'resultMethod' => 'addSuccess', ], [ - 'currentUserPassword' => '123123q', + 'currentUserPassword' => '1234512345q!', 'userId' => 0, 'currentUserId' => 2, 'resultMethod' => 'addError', ], [ - 'currentUserPassword' => '123123q', + 'currentUserPassword' => '1234512345q!', 'userId' => 1, 'currentUserId' => 1, 'resultMethod' => 'addError', diff --git a/dev/tests/api-functional/config/install-config-mysql.php.dist b/dev/tests/api-functional/config/install-config-mysql.php.dist index abff693cb15ad..2d72df1f7dc14 100644 --- a/dev/tests/api-functional/config/install-config-mysql.php.dist +++ b/dev/tests/api-functional/config/install-config-mysql.php.dist @@ -2,8 +2,8 @@ /** * Magento console installer options for Web API functional tests. Are used in functional tests bootstrap. * - * Copyright © Magento, Inc. All rights reserved. - * See COPYING.txt for license details. + * Copyright 2015 Adobe + * All Rights Reserved. */ return [ 'language' => 'en_US', @@ -21,7 +21,7 @@ return [ 'admin-firstname' => 'Admin', 'admin-email' => 'admin@example.com', 'admin-user' => 'admin', - 'admin-password' => '123123q', + 'admin-password' => '1234512345q!', 'admin-use-security-key' => '0', /* PayPal has limitation for order number - 20 characters. 10 digits prefix + 8 digits number is good enough */ 'sales-order-increment-prefix' => time(), diff --git a/dev/tests/integration/etc/install-config-mysql.php.dist b/dev/tests/integration/etc/install-config-mysql.php.dist index 1f6399bc6b4dc..06af87b2e1769 100644 --- a/dev/tests/integration/etc/install-config-mysql.php.dist +++ b/dev/tests/integration/etc/install-config-mysql.php.dist @@ -1,13 +1,13 @@ 'localhost', 'db-user' => 'root', - 'db-password' => '123123q', + 'db-password' => '1234512345q!', 'db-name' => 'magento_integration_tests', 'db-prefix' => '', 'backend-frontname' => 'backend', diff --git a/dev/tests/integration/testsuite/Magento/User/Model/UserTest.php b/dev/tests/integration/testsuite/Magento/User/Model/UserTest.php index 5c4c4db2a048a..784a8be369533 100644 --- a/dev/tests/integration/testsuite/Magento/User/Model/UserTest.php +++ b/dev/tests/integration/testsuite/Magento/User/Model/UserTest.php @@ -1,7 +1,7 @@ setEmail( 'jdoe@example.com' )->setPassword( - '123123q' + '1234512345q!' ); $this->_model->save(); $this->assertStringNotContainsString( - '123123q', + '1234512345q!', $this->_model->getPassword(), 'Password is expected to be hashed' ); @@ -486,9 +486,9 @@ public function testBeforeSaveValidationSuccess() )->setEmail( 'jdoe@example.com' )->setPassword( - '1234abc' + '1234512345q!' )->setPasswordConfirmation( - '1234abc' + '1234512345q!' ); $this->_model->save(); } diff --git a/dev/tests/setup-integration/etc/install-config-mysql.php.dist b/dev/tests/setup-integration/etc/install-config-mysql.php.dist index 5dea43f9fa583..0f854cfe2c9e4 100644 --- a/dev/tests/setup-integration/etc/install-config-mysql.php.dist +++ b/dev/tests/setup-integration/etc/install-config-mysql.php.dist @@ -1,7 +1,7 @@ '', 'backend-frontname' => 'admin', 'admin-user' => 'admin', - 'admin-password' => '123123q', + 'admin-password' => '1234512345q!', 'admin-email' => \Magento\TestFramework\Bootstrap::ADMIN_EMAIL, 'admin-firstname' => \Magento\TestFramework\Bootstrap::ADMIN_FIRSTNAME, 'admin-lastname' => \Magento\TestFramework\Bootstrap::ADMIN_LASTNAME, diff --git a/setup/src/Magento/Setup/Test/Unit/Console/Command/InstallCommandTest.php b/setup/src/Magento/Setup/Test/Unit/Console/Command/InstallCommandTest.php index 04f11505331b7..8cd36aa12bd01 100644 --- a/setup/src/Magento/Setup/Test/Unit/Console/Command/InstallCommandTest.php +++ b/setup/src/Magento/Setup/Test/Unit/Console/Command/InstallCommandTest.php @@ -1,7 +1,7 @@ input['--' . AdminAccount::KEY_USER] = 'user'; - $this->input['--' . AdminAccount::KEY_PASSWORD] = '123123q'; + $this->input['--' . AdminAccount::KEY_PASSWORD] = '1234512345q!'; $this->input['--' . AdminAccount::KEY_EMAIL] = 'test@test.com'; $this->input['--' . AdminAccount::KEY_FIRST_NAME] = 'John'; $this->input['--' . AdminAccount::KEY_LAST_NAME] = 'Doe'; diff --git a/setup/src/Magento/Setup/Test/Unit/Model/AdminAccountTest.php b/setup/src/Magento/Setup/Test/Unit/Model/AdminAccountTest.php index e11c58846cc67..dc1db5fad3a32 100644 --- a/setup/src/Magento/Setup/Test/Unit/Model/AdminAccountTest.php +++ b/setup/src/Magento/Setup/Test/Unit/Model/AdminAccountTest.php @@ -1,7 +1,7 @@ 'John', AdminAccount::KEY_LAST_NAME => 'Doe', AdminAccount::KEY_EMAIL => 'john.doe@test.com', - AdminAccount::KEY_PASSWORD => '123123q', + AdminAccount::KEY_PASSWORD => '1234512345q!', AdminAccount::KEY_USER => 'admin', AdminAccount::KEY_PREFIX => 'pre_' ];