モジュール:確認画面連絡/testcases

local p = require('Module:UnitTests')

function p:expandMessage(value)
	return self.frame:preprocess("{{Wikipedia:管理者伝言板/確認画面連絡/" .. value .. '}}')
end

function p:test_main()
    self:preprocess_equals_sandbox_many('{{#invoke:確認画面連絡', 'main', {
    	{ 'Wikipedia:サンドボックス|protect', self:expandMessage('Wikipedia:サンドボックス|protect') },
    	{ 'Wikipedia:サンドボックス|undelete', self:expandMessage('Wikipedia:サンドボックス|undelete') },
    	{ 'Wikipedia:サンドボックス|move', self:expandMessage('Wikipedia:サンドボックス|move') },
    	{ '特別:移動/Wikipedia:サンドボックス|move', self:expandMessage('Wikipedia:サンドボックス|move') },
    	{ 'Wikipedia:オーバーサイト依頼|protect', self:expandMessage('Wikipedia:オーバーサイト依頼|protect') },
    	{ 'Wikipedia:オーバーサイト依頼|delete', self:expandMessage('Wikipedia:オーバーサイト依頼|delete') },
    	{ 'Wikipedia:オーバーサイト依頼', self:expandMessage('Wikipedia:オーバーサイト依頼') },
    	{ 'メインページ|delete', '' },
    })
end

return p