public function PURLBasicTest::setUp in Persistent URL 6
Same name and namespace in other branches
- 7 tests/purl.test \PURLBasicTest::setUp()
Set up test.
Overrides DrupalWebTestCase::setUp
File
- tests/
purl.test, line 80
Class
- PURLBasicTest
- Basic tests for PURL.
Code
public function setUp() {
parent::setUp('ctools', 'locale', 'purl', 'purl_test');
$admin_user = $this
->drupalCreateUser(array(
'administer languages',
'administer site configuration',
));
$this
->drupalLogin($admin_user);
// Set up Spanish as second language.
$this
->drupalPost('admin/settings/language/add', array(
'langcode' => 'es',
), t('Add language'));
$this
->drupalPost('admin/settings/language/configure', array(
'language_negotiation' => 1,
), t('Save settings'));
}