Wikimedia
[Unit testing] Add unit tests to Newsletter create operations
So here are things that happens on creating a newsletter via Special:CreateNewsletter
- User types in valid data for fields in CreateNewsletter and submits with wiki page with information of newsletter as
Fooand name of the Newsletter asFooBar - This information is saved on the database with the created user added as a publisher of the newsletter, and subscribed to it. The created user should be the only one at that point.
- A page is created in
Newsletternamespace with the titleNewsletter:FooBarwith theNewsletterContentModeland will have a json similar to:
{
"description": "This is a test description. This is a test description. This is a test description. This is a test description.",
"mainpage": "Foo",
"publishers": [
"userName"
]
}
Since these are dependent tasks, I will create this as one big GCI task.
Task tags
Students who completed this task
pppery