feat(plugins): Added message read/update methods to the Channel API. (#6650)
This PR adds methods to read and update messages in a channel. Specifically, it adds: - message_snapshot - last_message - replace_message/replace_message_at - clear_messages - find_message_by_id - has_messages - count_messages Reviewed-by: Mm2PL <mm2pl+gh@kotmisia.pl>
This commit is contained in:
@@ -1579,6 +1579,19 @@ TEST_P(PluginMessageTest, Run)
|
||||
INSTANTIATE_TEST_SUITE_P(PluginMessage, PluginMessageTest,
|
||||
testing::ValuesIn(discoverLuaTests("message")));
|
||||
|
||||
class PluginChannelTest : public PluginTest,
|
||||
public ::testing::WithParamInterface<QString>
|
||||
{
|
||||
};
|
||||
TEST_P(PluginChannelTest, Run)
|
||||
{
|
||||
this->configure();
|
||||
runLuaTest("channel", GetParam(), *this->lua);
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(PluginChannel, PluginChannelTest,
|
||||
testing::ValuesIn(discoverLuaTests("channel")));
|
||||
|
||||
// verify that all snapshots are included
|
||||
TEST(PluginMessageConstructionTest, Integrity)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user