fape.test in Field API Pane Editor (FAPE) 7
Some tests for the FAPE module.
File
tests/fape.testView source
<?php
/**
* @file
* Some tests for the FAPE module.
*/
/**
* Test basic functionality of FAPE.
*/
class FapeBasicTestCase extends DrupalWebTestCase {
/**
* {@inheritdoc}
*/
public static function getInfo() {
return array(
'name' => 'FAPE basic test',
'description' => 'Confirm that the FAPE module can be enabled.',
'group' => 'fape',
);
}
/**
* {@inheritdoc}
*/
public function setUp(array $modules = array()) {
// Enable this custom module.
$modules[] = 'fape';
parent::setUp($modules);
}
/**
* Make sure the site still works. For now just check the front page.
*/
public function testTheSiteStillWorks() {
// Load the front page.
$this
->drupalGet('<front>');
// Confirm that the site didn't throw a server error or something else.
$this
->assertResponse(200);
// Confirm that the front page contains the standard text.
$this
->assertText(t('Welcome to Drupal'));
}
}
Classes
Name | Description |
---|---|
FapeBasicTestCase | Test basic functionality of FAPE. |