Module:Protection banner/config/testcases: Difference between revisions

Content deleted Content added
add full dispute category
add move disputes
Line 94:
function suite:testCategory_edit_full_template_dispute_temp()
self:assertCategoryEquals('Wikipedia pages protected due to dispute', 'edit', 'full', 10, 'dispute', timestamp)
end
 
--------------------------------------------------------------------------------
-- Categories: move-full-dispute
--------------------------------------------------------------------------------
 
function suite:testCategory_move_full_template_dispute_temp()
self:assertCategoryEquals('Wikipedia pages move-protected due to dispute', 'move', 'full', 0, 'dispute', nil)
end
 
function suite:testCategory_move_full_talk_dispute_all()
self:assertCategoryEquals('Wikipedia pages move-protected due to dispute', 'move', 'full', 1, 'dispute', nil)
end
 
function suite:testCategory_move_full_file_dispute_all()
self:assertCategoryEquals('Wikipedia pages move-protected due to dispute', 'move', 'full', 6, 'dispute', nil)
end
 
function suite:testCategory_move_full_template_dispute_all()
self:assertCategoryEquals('Wikipedia pages move-protected due to dispute', 'move', 'full', 10, 'dispute', nil)
end
 
function suite:testCategory_move_full_main_dispute_temp()
self:assertCategoryEquals('Wikipedia pages move-protected due to dispute', 'move', 'full', 0, 'dispute', timestamp)
end
 
function suite:testCategory_move_full_talk_dispute_temp()
self:assertCategoryEquals('Wikipedia pages move-protected due to dispute', 'move', 'full', 1, 'dispute', timestamp)
end
 
function suite:testCategory_move_full_file_dispute_temp()
self:assertCategoryEquals('Wikipedia pages move-protected due to dispute', 'move', 'full', 6, 'dispute', timestamp)
end
 
function suite:testCategory_move_full_template_dispute_temp()
self:assertCategoryEquals('Wikipedia pages move-protected due to dispute', 'move', 'full', 10, 'dispute', timestamp)
end