Add a class to handle test entities consistently
[civicrm-core.git] / tests / phpunit / WebTest / Event / AddParticipationTest.php
index 0c21bd928608f392464de71bc9d3c23b296f33fa..044dd24d320bdb04cdda7461dc81244ef1c8852a 100644 (file)
@@ -342,7 +342,7 @@ class WebTest_Event_AddParticipationTest extends CiviSeleniumTestCase {
     $this->clickLink("_qf_Search_refresh", "participantSearch");
 
     //verifying the registered participants
-    $status = "Registered (test)";
+    $status = CRM_Core_TestEntity::appendTestText("Registered");
 
     foreach ($contacts as $contact) {
       $this->verifyText("xpath=//div[@id='participantSearch']//table//tbody//tr/td[@class='crm-participant-sort_name']/a[text()='{$contact['sort_name']}']/../../td[9]", preg_quote($status));