Content deleted Content added
create with some category tests |
add full dispute category |
||
Line 22:
--------------------------------------------------------------------------------
-- Category name tests
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Categories: edit-semi-dispute
--------------------------------------------------------------------------------
Line 55 ⟶ 59:
self:assertCategoryEquals('Wikipedia pages semi-protected due to dispute', 'edit', 'semi', 10, 'dispute', timestamp)
end
--------------------------------------------------------------------------------
-- Categories: edit-full-dispute
--------------------------------------------------------------------------------
function suite:testCategory_edit_full_main_dispute_all()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 0, 'dispute', nil)
end
function suite:testCategory_edit_full_talk_dispute_all()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 1, 'dispute', nil)
end
function suite:testCategory_edit_full_file_dispute_all()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 6, 'dispute', nil)
end
function suite:testCategory_edit_full_template_dispute_all()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 10, 'dispute', nil)
end
function suite:testCategory_edit_full_main_dispute_temp()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 0, 'dispute', timestamp)
end
function suite:testCategory_edit_full_talk_dispute_temp()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 1, 'dispute', timestamp)
end
function suite:testCategory_edit_full_file_dispute_temp()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 6, 'dispute', timestamp)
end
function suite:testCategory_edit_full_template_dispute_temp()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 10, 'dispute', timestamp)
end
return suite
|