You are here

protected function SearchApiEtTestCase::deleteTranslation in Search API Entity Translation 7.2

Deletes a node translation.

Parameters

object $node: Node of the basic page to delete translation for.

string $langcode: The language code of the translation to be removed.

1 call to SearchApiEtTestCase::deleteTranslation()
SearchApiEtTestCase::testIndex in tests/search_api_et.test
Tests adding, updating and deleting multilingual Search API items.

File

tests/search_api_et.test, line 275
Tests for Search API Entity Translation.

Class

SearchApiEtTestCase
Tests adding, updating and deleting multilingual Search API items.

Code

protected function deleteTranslation($node, $langcode) {
  $this
    ->drupalPost('node/' . $node->nid . '/translate/delete/' . $langcode, array(), t('Delete'));
  $this
    ->assertNoLinkByHref('node/' . $node->nid . '/edit/' . $langcode, 0, t('Translation edit link not found. Translation deleted.'));
}