MetatagImporterTest.test in Metatag 7
Tests for the Metatag Importer module.
File
metatag_importer/tests/MetatagImporterTest.testView source
<?php
/**
* @file
* Tests for the Metatag Importer module.
*/
/**
* Tests for the Metatag Importer module.
*/
class MetatagImporterTest extends MetatagTestBase {
/**
* {@inheritdoc}
*/
public static function getInfo() {
return array(
'name' => 'Metatag Importer tests',
'description' => 'Test the Metatag:Importer module.',
'group' => 'Metatag',
'dependencies' => array(
'ctools',
'devel',
'token',
),
);
}
/**
* {@inheritdoc}
*/
public function setUp(array $modules = array()) {
$modules[] = 'metatag_importer';
parent::setUp($modules);
// Create an admin user and log them in.
$this->adminUser = $this
->createAdminUser();
$this
->drupalLogin($this->adminUser);
}
/**
* Confirm that it's possible to load the importer admin page.
*/
public function testAdminPage() {
$this
->drupalGet('admin/config/search/metatags/importer');
$this
->assertResponse(200);
// Confirm the page is loaded.
$this
->assertText(t('Use the links above to import data from another module.'));
}
}
Classes
Name | Description |
---|---|
MetatagImporterTest | Tests for the Metatag Importer module. |