@@ -26,7 +26,7 @@ protected function tearDown(): void
26
26
public function testJSONRendering ()
27
27
{
28
28
$ snippet_settings = new IntercomSnippetSettings (array ("app_id " => "bar " ));
29
- $ this ->assertEquals ("{ \"app_id \": \"bar \", \"installation_type \": \"wordpress \", \"integration_version \": \"" . INTERCOM_PLUGIN_VERSION . "\"} " , $ snippet_settings ->json ());
29
+ $ this ->assertEquals ("{ \"app_id \": \"bar \", \"installation_type \": \"wordpress \", \"installation_version \": \"" . INTERCOM_PLUGIN_VERSION . "\"} " , $ snippet_settings ->json ());
30
30
}
31
31
public function testJSONRenderingWithIdentityVerification ()
32
32
{
@@ -37,23 +37,23 @@ public function testJSONRenderingWithIdentityVerification()
37
37
"exp " => TimeProvider::getCurrentTime () + 3600
38
38
);
39
39
$ jwt = JWT ::encode ($ jwt_data , "s3cre7 " , 'HS256 ' );
40
- $ this ->assertEquals ('{"app_id":"bar","intercom_user_jwt":" ' .$ jwt .'","installation_type":"wordpress","integration_version ":" ' . INTERCOM_PLUGIN_VERSION . '"} ' , $ snippet_settings ->json ());
40
+ $ this ->assertEquals ('{"app_id":"bar","intercom_user_jwt":" ' .$ jwt .'","installation_type":"wordpress","installation_version ":" ' . INTERCOM_PLUGIN_VERSION . '"} ' , $ snippet_settings ->json ());
41
41
}
42
42
public function testJSONRenderingWithIdentityVerificationAndNoSecret ()
43
43
{
44
44
$ snippet_settings = new IntercomSnippetSettings (array ("app_id " => "bar " ), NULL , new FakeWordPressUserForSnippetTest ());
45
- $ this ->
assertEquals (
"{ \"app_id \": \"bar \", \"email \": \"[email protected] \", \"installation_type \": \"wordpress \", \"integration_version \": \"" .
INTERCOM_PLUGIN_VERSION .
"\"} " ,
$ snippet_settings->
json ());
45
+ $ this ->
assertEquals (
"{ \"app_id \": \"bar \", \"email \": \"[email protected] \", \"installation_type \": \"wordpress \", \"installation_version \": \"" .
INTERCOM_PLUGIN_VERSION .
"\"} " ,
$ snippet_settings->
json ());
46
46
}
47
47
public function testInstallationType ()
48
48
{
49
49
$ snippet_settings = new IntercomSnippetSettings (array ("app_id " => "bar " ));
50
- $ this ->assertEquals ("{ \"app_id \": \"bar \", \"installation_type \": \"wordpress \", \"integration_version \": \"" . INTERCOM_PLUGIN_VERSION . "\"} " , $ snippet_settings ->json ());
50
+ $ this ->assertEquals ("{ \"app_id \": \"bar \", \"installation_type \": \"wordpress \", \"installation_version \": \"" . INTERCOM_PLUGIN_VERSION . "\"} " , $ snippet_settings ->json ());
51
51
}
52
52
public function testIclLanguageConstant ()
53
53
{
54
54
define ('ICL_LANGUAGE_CODE ' , 'fr ' );
55
55
$ snippet_settings = new IntercomSnippetSettings (array ("app_id " => "bar " ));
56
- $ this ->assertEquals ("{ \"app_id \": \"bar \", \"language_override \": \"fr \", \"installation_type \": \"wordpress \", \"integration_version \": \"" . INTERCOM_PLUGIN_VERSION . "\"} " , $ snippet_settings ->json ());
56
+ $ this ->assertEquals ("{ \"app_id \": \"bar \", \"language_override \": \"fr \", \"installation_type \": \"wordpress \", \"installation_version \": \"" . INTERCOM_PLUGIN_VERSION . "\"} " , $ snippet_settings ->json ());
57
57
}
58
58
59
59
public function testAppId ()
0 commit comments