public function RocketChatTestUnitTest::testLiveChatJavascriptGeneratorUnitTest in Rocket.Chat 7.2
File
- ./
rocket_chat.test, line 76
Class
- RocketChatTestUnitTest
- Although most core test cases are based on DrupalWebTestCase and are functional tests (exercising the web UI) we also have DrupalUnitTestCase, which executes much faster because a Drupal install does not have to be one. No environment is provided to a…
Code
public function testLiveChatJavascriptGeneratorUnitTest() {
$group = "JavaScript";
$this
->assertTrue($this
->javascriptVersionTest("legacy"), "Livechat Javascipt Generation [legacy].", $group);
$state[] = $this
->assertTrue($this
->javascriptVersionTest("legacy"), "Livechat Javascipt Generation [legacy].", $group);
$state[] = $this
->assertTrue($this
->javascriptVersionTest("1.0.0"), "Livechat Javascipt Generation [1.0.0].", $group);
$state[] = $this
->assertFalse($this
->javascriptVersionTest("BOGUS"), "Livechat Javascipt Generation [BOGUS]. (Fail tesT)", $group);
$state[] = $this
->assertTrue($this
->javascriptVersionTest(), "Livechat Javascipt Generation [DEFAULT].", $group);
}