Merge pull request #14337 from eileenmcnaughton/dedupe_cleanup
[civicrm-core.git] / tests / phpunit / CRM / Core / Payment / AuthorizeNetTest.php
index a7985323b35aa0d96f469f4368d29955d529ad01..3138456490defbfe1592889e82af4cc4d8c6c1aa 100644 (file)
@@ -53,8 +53,8 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
    * 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);
 
@@ -145,7 +145,7 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
       '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,
@@ -323,7 +323,7 @@ class CRM_Core_Payment_AuthorizeNetTest extends CiviUnitTestCase {
    *
    * @param array $params
    *
-   * @throws PHPUnit_Framework_SkippedTestError
+   * @throws PHPUnit\Framework\SkippedTestError
    */
   public function doPayment($params) {
     try {