Chris@16: root . '/' . $this->siteDirectory . '/files/translations', 0777, TRUE); Chris@17: file_put_contents($this->root . '/' . $this->siteDirectory . '/files/translations/drupal-8.0.0.ar.po', "msgid \"\"\nmsgstr \"\"\nmsgid \"Save and continue\"\nmsgstr \"Save and continue Arabic\""); Chris@16: Chris@16: parent::setUpLanguage(); Chris@16: // After selecting a different language than English, all following screens Chris@16: // should be translated already. Chris@16: $elements = $this->xpath('//input[@type="submit"]/@value'); Chris@16: $this->assertEqual(current($elements)->getText(), 'Save and continue Arabic'); Chris@16: $this->translations['Save and continue'] = 'Save and continue Arabic'; Chris@16: Chris@16: // Verify that language direction is right-to-left. Chris@16: $direction = current($this->xpath('/@dir'))->getText(); Chris@16: $this->assertEqual($direction, 'rtl'); Chris@16: } Chris@16: Chris@16: /** Chris@16: * Confirms that the installation succeeded. Chris@16: */ Chris@16: public function testInstalled() { Chris@16: $this->assertUrl('user/1'); Chris@16: $this->assertResponse(200); Chris@16: } Chris@16: Chris@16: }