Closed (fixed)
Project:
Simplenews
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
6 Feb 2015 at 09:58 UTC
Updated:
23 Oct 2015 at 12:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
MarinkoIg commentedAssigned to me.
Comment #2
MarinkoIg commentedI tried something but is not correct...
Comment #4
thenchev commentedFirst, you should start with this line. The reason you have an error is $this->setErrorByName does not exist
Comment #5
MarinkoIg commentedI changed..
Comment #6
MarinkoIg commentedI forgot 'Needs review'
Comment #9
thenchev commentedYou should add a dock block here to explain what your method is doing.
Also add visibility before function, "public" should be ok.
Parenthesis should be on a new line here. Should look like this:
'administer newsletters',
'administer permissions',
)
$single_block is not used anywhere after this code. You can remove it.
Remove one of these.
This line could be more descriptive. Instead of "Correct" you can say "Invalid email shows error"
Comment #10
MarinkoIg commentedWith changes..
Comment #12
MarinkoIg commentedComment #16
miro_dietikerA separate test just to test invalid mail addresses seems a bit much overhead to me.
I would prefer to extend one of the existing subscription tests with an invalid address and check the message. 2..5 extra lines, not more.
Comment #17
MarinkoIg commentedMiro, I took your advice and made changes.
Comment #18
miro_dietikerLooks fine now!
Comment #19
berdirYes, looks good.