Commit ba2bf821 authored by TravisCarden's avatar TravisCarden

By TravisCarden: Made a couple of coding style and standards improvements.

parent ec5f7f83
......@@ -53,12 +53,14 @@ function checklistapi_checklist_clear_confirm_submit($form, &$form_state) {
*/
function checklistapi_checklist_form($form, &$form_state, $id) {
$form['#checklist'] = $checklist = checklistapi_checklist_load($id);
if (checklistapi_compact_mode()) {
$form['#attributes']['class'] = array('compact-mode');
}
$form['compact_mode_link'] = array(
'#markup' => theme('checklistapi_compact_link'),
);
$form['checklistapi'] = array(
'#attached' => array(
'css' => array(drupal_get_path('module', 'checklistapi') . '/checklistapi.css'),
......
......@@ -10,9 +10,6 @@
*/
class ChecklistapiUnitTestCase extends DrupalUnitTestCase {
/**
* Overrides DrupalUnitTestCase::getInfo().
*/
public static function getInfo() {
return array(
'name' => 'Unit tests',
......@@ -21,9 +18,6 @@ class ChecklistapiUnitTestCase extends DrupalUnitTestCase {
);
}
/**
* Overrides DrupalUnitTestCase::setUp().
*/
public function setUp() {
drupal_load('module', 'checklistapi');
drupal_load('module', 'checklistapi_test');
......@@ -70,9 +64,6 @@ class ChecklistapiUnitTestCase extends DrupalUnitTestCase {
class ChecklistapiWebTestCase extends DrupalWebTestCase {
protected $privilegedUser;
/**
* Overrides DrupalWebTestCase::getInfo().
*/
public static function getInfo() {
return array(
'name' => 'Functional tests',
......@@ -81,9 +72,6 @@ class ChecklistapiWebTestCase extends DrupalWebTestCase {
);
}
/**
* Overrides DrupalWebTestCase::setUp().
*/
public function setUp() {
parent::setUp('checklistapi_example');
$permissions = array('edit any checklistapi checklist');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment