Commit a42c22f2 authored by sampaioprimo's avatar sampaioprimo

marking tests that rely on the google translate api as skipped

parent 253b7eaf
......@@ -99,6 +99,8 @@ class Multilingual_MachineTranslation_GoogleTranslateWrapperTest extends TikiTes
*/
public function test_Google_should_not_translate_html_syntax()
{
$this->markTestSkipped('Google Translation API returning empty translations.');
$text = "<a href='blah'>Hello world</a>";
$translation = $this->translator->translateText($text);
$this->assertRegExp("/<a href='blah'>\s?Ciao mondo<\/a>/", $translation, "The translation was not correct for text: $text.");
......@@ -110,6 +112,8 @@ class Multilingual_MachineTranslation_GoogleTranslateWrapperTest extends TikiTes
*/
public function test_Google_should_not_translate_more_complicated_html()
{
$this->markTestSkipped('Google Translation API returning empty translations.');
$text = "<strong><a title='refresh' accesskey='2' href='tiki-index.php?page=Hello+World'>Hello World</a></strong>";
$translation = $this->translator->translateText($text);
......@@ -123,6 +127,8 @@ class Multilingual_MachineTranslation_GoogleTranslateWrapperTest extends TikiTes
*/
public function test_that_ul_tag_gets_translated_properly()
{
$this->markTestSkipped('Google Translation API returning empty translations.');
$text = "<ul><li>You want to get started quickly<br /></li></ul>";
$translator = new Multilingual_MachineTranslation_GoogleTranslateWrapper('en', 'fr');
$translation = $translator->translateText($text);
......@@ -134,6 +140,8 @@ class Multilingual_MachineTranslation_GoogleTranslateWrapperTest extends TikiTes
*/
public function test_that_parens_stay_after_translation()
{
$this->markTestSkipped('Google Translation API returning empty translations.');
$text = 'profile (<a class="wiki" href="tiki-admin.php?profile=&amp;category=Featured+profiles&amp;repository=http%3a%2f%2fprofiles.tiki.org%2fprofiles&amp;preloadlist=y&amp;page=profiles&amp;list=List#profile-results" rel="">install profile now</a>)';
$translator = new Multilingual_MachineTranslation_GoogleTranslateWrapper('en', 'fr');
......@@ -148,6 +156,8 @@ class Multilingual_MachineTranslation_GoogleTranslateWrapperTest extends TikiTes
*/
public function test_strong_html_tag_renders_well_after_translation()
{
$this->markTestSkipped('Google Translation API returning empty translations.');
$text = 'different ways to <strong>Get Started</strong> with Tiki';
$translator = new Multilingual_MachineTranslation_GoogleTranslateWrapper('en', 'fr');
$translation = $translator->translateText($text);
......@@ -159,6 +169,8 @@ class Multilingual_MachineTranslation_GoogleTranslateWrapperTest extends TikiTes
*/
public function test_english_one_title_gets_translated()
{
$this->markTestSkipped('Google Translation API returning empty translations.');
$text = '<h3 class="showhide_heading" id="Get_Started_using_Profiles"><a class="wiki" href="tiki-admin.php?profile=&amp;category=Featured+profiles&amp;repository=http%3a%2f%2fprofiles.tiki.org%2fprofiles&amp;preloadlist=y&amp;page=profiles&amp;list=List#profile-results" rel="">Get Started using Admin Panel</a><br /></h3>';
$translator = new Multilingual_MachineTranslation_GoogleTranslateWrapper('en', 'fr');
......@@ -174,6 +186,8 @@ class Multilingual_MachineTranslation_GoogleTranslateWrapperTest extends TikiTes
*/
public function test_english_titles_get_translated()
{
$this->markTestSkipped('Google Translation API returning empty translations.');
$text = '<h3 class="showhide_heading" id="Get_Started_using_Profiles"><a class="wiki" href="tiki-admin.php?profile=&amp;category=Featured+profiles&amp;repository=http%3a%2f%2fprofiles.tiki.org%2fprofiles&amp;preloadlist=y&amp;page=profiles&amp;list=List#profile-results" rel="">Get Started using Admin Panel</a><br /></h3><h3 class="showhide_heading" id="Get_Started_using_Profiles"><a class="wiki" href="tiki-admin.php?profile=&amp;category=Featured+profiles&amp;repository=http%3a%2f%2fprofiles.tiki.org%2fprofiles&amp;preloadlist=y&amp;page=profiles&amp;list=List#profile-results" rel="">Get Started using Profiles</a><br /></h3>';
$translator = new Multilingual_MachineTranslation_GoogleTranslateWrapper('en', 'fr');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment