Closed Bug 500453 Opened 15 years ago Closed 15 years ago

User Adding Tags: simpletests

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mikelee, Assigned: mikelee)

References

Details

(Whiteboard: [webmocha])

Attachments

(2 files)

Breaking out unit tests for bug 494702.
Whiteboard: [webmocha]
Work in progress. ETA early next week.
Having trouble with all tests that require logging in. In my tests, the session data doesn't persist so the user_id fields. To reproduce, set debug > 0 and run
/en-US/firefox/tests/?case=controllers%2Ftags_controller.test.php

So the test for add_ajax successfully creates the tag, but is not able to create the user_tag_addon row because it needs the user id from the session. I see that the reviews test, testAddReview, fails in the same way.

Any help would be greatly appreciated. The test is in tags_controller.test.php. Once I figure this out I'll be able to write tests for the other controllers.
Depends on: 501132
Assignee: expatrick → mikelee
Will be working on simpletests this weekend.
status update?
Still working on these. Have been running into issues. No ETA yet.
Attached file patch
Code patch (diff file format) for this bug. Same as the one in bug 500452.
Attached file patch
Updated patch. Also includes tests for blacklist functionality.
Added in r49293
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: