Closed (fixed)
Project:
Drupal core
Version:
8.4.x-dev
Component:
contact.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Mar 2014 at 12:54 UTC
Updated:
10 Jul 2017 at 12:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
premgangwar commentedComment #2
Anonymous (not verified) commentedI added the test to check the presence of name and email field for anonymous user in the same test
Comment #3
andypostComment #4
grimreaperHello,
I just test the patch and it is OK.
I saw in the debug message, the case authenticated and the case authenticated and the results are the same as the results browsing the sites.
Is there any other thing that need testing ?
Comment #5
andypostShould be "One-line summary, ending in a period (.)"
See https://drupal.org/node/1354#order
and https://drupal.org/node/325974
trailing white-space, and unneeded line
"Leave an empty line between end of method and end of class definition" see https://drupal.org/node/608152
Comment #6
grimreaperI remade the patch of comment #2. Is it good now ?
@andypost : on the documentation pages you mentionned, is there a problem ? Because I read "leave empty line ...." and in the exemples I don't see empty lines.
Comment #7
Anonymous (not verified) commentedI generated a new patch taking care of the coding style
Comment #8
Anonymous (not verified) commentedChanged the summary to one line summary
Removed empty space
One line between end of method and end of class definition
Comment #9
andypostAwesome!
@Grimreaper hm, that should be fixed, please edit this page
Comment #10
grimreaper@andypost : ok, I see, when I edit the documentation page, there are blank lines which are removed when seeing the page : https://drupal.org/node/325974
What should be fixed this issue or the documentation page?
Comment #11
andypost@Grimreaper Suppose you mean https://drupal.org/node/608152#indenting that's a really bug!
Comment #12
andypostFiled documentation bug #2218915: Code examples removes blank lines
Comment #13
karan.poddar commentedApplied the patch and it works perfect.
Comment #15
visabhishek commented7: added_check_for_field_name_and_email_for_anonymous_user-2212869-7.patch queued for re-testing.
Comment #16
andypostComment #17
alexpottNot 100% sure that adding this to a test method called
testContactSiteWideTextfieldsLoggedInTestCasein a file calledContactAuthenticatedUserTestmakes sense. Plus the name and email fields are tested every timeContactSitewideTest::submitContact()is called when using the anon user. If we want to add the assertion for the fields let's add it toContactSitewideTest::testSiteWideContact()when it's is using the anon user.Comment #18
leevingo commentedMoved the test to ContactSitewideTest::testSiteWideContact() and removed ContactAuthenticatedUserTest.php.
Comment #20
leevingo commentedUpdated the patch that failed testing.
Comment #22
subhojit777Comment #24
subhojit777Comment #25
subhojit777Comment #27
mile23Generally looks good but needs a re-roll. We can leave this at 8.1.x since it only changes tests.
Comment #28
kostyashupenkoReroll of #25.
ContactAuthenticatedUserTest.php was removed in 8.1.x
Comment #29
andypostPlease remove "Now" or s/Ensure/ensure
Comment #30
poojasharmaece commentedPatch updated as per #29
Comment #32
kellyimagined commentedUpdated patch for case in #29
Comment #35
zeip commentedRe-roll against 8.3.x. IMO the comment changes in patch 30 were better, so I re-rolled that one.
Comment #36
jibranTest looks good but do we need
ContactAuthenticatedUserTestafter this?Comment #37
naveenvalecha#36,
Nice question Jibran. We don't need that as we are testing the same stuff in testSiteWideContact. We could easily remove that class as that's not a base class and there wouldn't be any BC problem of removing it.
//Naveen
Comment #38
jibranThanks!
Comment #40
catchCommitted/pushed to 8.4.x, thanks!