Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST FIX] Increase uniqueness in testSingleNowDates #13705

Merged
merged 1 commit into from
Feb 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/phpunit/CRM/Core/Payment/AuthorizeNetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ public function tearDown() {
* Test works but not both due to some form of caching going on in the SmartySingleton
*/
public function testCreateSingleNowDated() {
$firstName = 'John_' . substr(sha1(rand()), 0, 7);
$lastName = 'Smith_' . substr(sha1(rand()), 0, 7);
$firstName = 'John_' . substr(sha1(rand()), 0, 7) . uniqid();
$lastName = 'Smith_' . substr(sha1(rand()), 0, 7) . uniqid();
$nameParams = array('first_name' => $firstName, 'last_name' => $lastName);
$contactId = $this->individualCreate($nameParams);

Expand Down Expand Up @@ -145,7 +145,7 @@ public function testCreateSingleNowDated() {
'first_name' => $firstName,
'middle_name' => '',
'last_name' => $lastName,
'street_address' => '8 Hobbiton Road',
'street_address' => '8 Hobbiton Road' . uniqid(),
'city' => 'The Shire',
'state_province' => 'IL',
'postal_code' => 5010,
Expand Down