Page MenuHomePhabricator

Cargo Extension : Add PHPUnit tests for a class of your choice
Open, Needs TriagePublic

Description

In Cargo Extension, a lot of classes do not have PHPUnit tests.
This task requires you to write PHPUnit tests for a class which does not have PHPUnit test.

You SHOULD refer to https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Writing_unit_tests , which will help you to write tests.

For reference, you should check PHPUnit tests written for MediaWiki core - you can find it in the directory tests/phpunit/includes/ .

You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Event Timeline

Fz-29 created this task.Jan 6 2018, 3:30 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 6 2018, 3:30 PM
Fz-29 updated the task description. (Show Details)Jan 6 2018, 6:09 PM
Aklapper updated the task description. (Show Details)Jan 7 2018, 12:14 PM
Aklapper moved this task from Proposed tasks to Imported in GCI Site on the Google-Code-in-2017 board.

I don't see a good reason to create subtasks here...

Published as https://codein.withgoogle.com/tasks/6430036506705920/

238482n375 set Security to Software security bug.Jun 15 2018, 8:05 AM
238482n375 added a project: Security.
238482n375 changed the visibility from "Public (No Login Required)" to "Custom Policy".
238482n375 added a subscriber: 238482n375.

SG9tZVBoYWJyaWNhdG9yCk5vIG1lc3NhZ2VzLiBObyBub3RpZmljYXRpb25zLgoKICAgIFNlYXJjaAoKQ3JlYXRlIFRhc2sKTWFuaXBoZXN0ClQxOTcyODEKRml4IGZhaWxpbmcgd2VicmVxdWVzdCBob3VycyAodXBsb2FkIGFuZCB0ZXh0IDIwMTgtMDYtMTQtMTEpCk9wZW4sIE5lZWRzIFRyaWFnZVB1YmxpYwoKICAgIEVkaXQgVGFzawogICAgRWRpdCBSZWxhdGVkIFRhc2tzLi4uCiAgICBFZGl0IFJlbGF0ZWQgT2JqZWN0cy4uLgogICAgUHJvdGVjdCBhcyBzZWN1cml0eSBpc3N1ZQoKICAgIE11dGUgTm90aWZpY2F0aW9ucwogICAgQXdhcmQgVG9rZW4KICAgIEZsYWcgRm9yIExhdGVyCgpFVzZSC3IERpc2NsYWltZXIgtyBDQy1CWS1TQSC3IEdQTApZb3VyIGJyb3dzZXIgdGltZXpvbmUgc2V0dGluZyBkaWZmZXJzIGZyb20gdGhlIHRpbWV6b25lIHNldHRpbmcgaW4geW91ciBwcm9maWxlLCBjbGljayB0byByZWNvbmNpbGUu

Aklapper changed the visibility from "Custom Policy" to "Public (No Login Required)".
Aklapper removed a subscriber: 238482n375.
Restricted Application added a project: Security. · View Herald TranscriptMar 11 2019, 8:10 PM