public function testIclLanguageConstant()
 {
     define('ICL_LANGUAGE_CODE', 'fr');
     $snippet_settings = new SnippetSettings(array("app_id" => "bar"));
     $this->assertEquals("{\"app_id\":\"bar\",\"language_override\":\"fr\"}", $snippet_settings->json());
 }
 public function testJSONRenderingWithSecureMode()
 {
     $snippet_settings = new SnippetSettings(array("app_id" => "bar"), "foo", new FakeWordpressUserForSnippetTest());
     $this->assertEquals("{\"app_id\":\"bar\",\"email\":\"foo@bar.com\",\"user_hash\":\"a95b0a1ab461c0721d91fbe32a5f5f2a27ac0bfa4bfbcfced168173fa80d4e14\"}", $snippet_settings->json());
 }