Asserts that a page exists and is in the specified language.
public function assertPageInLanguage($path = NULL, $langcode) {
if (isset($path)) {
$this
->drupalGet($path);
}
if (!$this
->assertResponse(200)) {
return FALSE;
}
if ($this
->parse()) {
return $this
->assertIdentical($langcode, (string) $this->elements['xml:lang']);
}
else {
return FALSE;
}
}