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

Add a class to handle test entities consistently #13814

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

mattwire
Copy link
Contributor

Overview

Test entities are handled pretty inconsistently throughout CiviCRM. From when they are displayed, the order they are displayed in, which entities they are shown on etc. I have a "sprint" topic to work on this at some point but this is a first tiny step.

Before

No consistency about how an entity shows "test".

After

Consistent function to handle the display of "test".

Technical Details

We add a new class CRM_Core_TestEntity to provide a central class for handling display of test entities.

Comments

@eileenmcnaughton related to #13779

@civibot
Copy link

civibot bot commented Mar 13, 2019

(Standard links)

@@ -342,7 +342,7 @@ public function testEventAddMultipleParticipants() {
$this->clickLink("_qf_Search_refresh", "participantSearch");

//verifying the registered participants
$status = "Registered (test)";
$status = CRM_Core_TestEntity::appendTestText("Registered");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm not translated but it's a webtest file so who cares

@eileenmcnaughton
Copy link
Contributor

Gave it a quick spin & seems to work. Adds consistency, merging

@eileenmcnaughton eileenmcnaughton merged commit e420b8c into civicrm:master Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants