stable

Clone or download

Read-only

request #11529 BotMattermost uses PHPUnit to un unit tests

Given that PHPUnit is configured to be strict on $GLOBALS usage, Response and Language that came from $GLOBALS must now be injected as class parameter. Change-Id: I78137bd389a776acc87e2e0c25b6b3866df56d34

Modified Files

Name
M include/BotMattermost/Controller/AdminController.php +38 −19 Go to diff View file
M include/botmattermostPlugin.class.php +3 −1 Go to diff View file
A phpunit/.simpletest_skip +0 −0 Go to diff View file
R tests/BotMattermost/AdminControllerTest.php Go to diff View file
R tests/BotMattermost/SenderServices/EncoderMessageTest.php Go to diff View file
R tests/BotMattermost/SenderServices/MarkdownEngine/MarkdownMustacheRendererTest.php Go to diff View file
R tests/BotMattermost/SenderServices/MarkdownEngine/MarkdownTemplateRendererFactoryTest.php Go to diff View file
R tests/BotMattermost/SenderServices/MarkdownEngine/templates/simple-text.mustache Go to diff View file
R tests/BotMattermost/SenderServices/SenderTest.php Go to diff View file
R tests/bootstrap.php Go to diff View file