Mercurial > wow > squawk
comparison Tests.lua @ 7:d19385c4a282
More follow/unfollow logic with pending offline approval
updated tests
author | wobin |
---|---|
date | Sun, 19 Apr 2009 02:45:38 +1000 |
parents | d1383f2d9b43 |
children | 2231fd3f139b |
comparison
equal
deleted
inserted
replaced
6:b108025d5deb | 7:d19385c4a282 |
---|---|
24 self:RegisterComm("Squawk", ReceiveMessage) | 24 self:RegisterComm("Squawk", ReceiveMessage) |
25 self:RegisterSlashCommand("TestSquawk", "RunTests") | 25 self:RegisterSlashCommand("TestSquawk", "RunTests") |
26 end | 26 end |
27 | 27 |
28 function Test:RunTests() | 28 function Test:RunTests() |
29 | 29 AddPublicFollower() |
30 RemovePublicFollower() | |
31 AddPrivateFollower() | |
32 ApprovePendingRequest() | |
30 end | 33 end |
31 | 34 |
32 function Test:AddFollower() | 35 function Test:AddPublicFollower() |
33 | 36 Squawk.Settings.Private = false |
37 Squawk.Controller:IWantToFollowThem(UnitName("player")) | |
38 end | |
39 | |
40 function Test:RemovePublicFollower() | |
41 Squawk.Controller:IWantToUnfollowThem(UnitName("player")) | |
42 end | |
43 | |
44 function Test:AddPrivateFollower() | |
45 Squawk.Settings.Private = true | |
46 Squawk.Controller:IWantToFollowThem(UnitName("player")) | |
47 end | |
48 | |
49 function Test:ApprovePendingRequest() | |
50 Squawk.Controller:ApprovePendingRequest(Name) | |
34 end | 51 end |
35 | 52 |
36 function Test:ReceiveMessage(Prefix, Message, Distribution, Sender) | 53 function Test:ReceiveMessage(Prefix, Message, Distribution, Sender) |
37 end | 54 end |
38 | 55 |