public function XMLSitemapI18nNodeTest::testNodeLanguageData in XML sitemap 7.2
Same name and namespace in other branches
- 6.2 xmlsitemap_i18n/xmlsitemap_i18n.test \XMLSitemapI18nNodeTest::testNodeLanguageData()
Node Language Data.
File
- xmlsitemap_i18n/
xmlsitemap_i18n.test, line 164 - Unit tests for the xmlsitemap_i18n project.
Class
- XMLSitemapI18nNodeTest
- Node Test.
Code
public function testNodeLanguageData() {
$node = $this
->drupalCreateNode(array());
$this
->drupalPost('node/' . $node->nid . '/edit', array(
'language' => 'en',
), t('Save'));
$link = $this
->assertSitemapLink('node', $node->nid);
$this
->assertIdentical($link['language'], 'en');
$this
->drupalPost('node/' . $node->nid . '/edit', array(
'language' => 'fr',
), t('Save'));
$link = $this
->assertSitemapLink('node', $node->nid);
$this
->assertIdentical($link['language'], 'fr');
}