Commit 537c8a1d authored by TravisCarden's avatar TravisCarden

Follow-up to 50b6a6c1 by TravisCarden: Removed references to missing...

Follow-up to 50b6a6c1 by TravisCarden: Removed references to missing Drupal\checklistapi\Controller\ChecklistapiController::setCompactMode().
parent 6ac40848
......@@ -61,9 +61,8 @@ function checklistapi_checklist_load($id) {
*
* Compact mode shows checklist forms with less description text.
*
* Whether the user is in compact mode is determined by a cookie, which is set
* for the user by ChecklistapiController::setCompactMode(). If the user does
* not have the cookie, the setting defaults to off.
* Whether the user is in compact mode is determined by a cookie. If the user
* does not have the cookie, the setting defaults to off.
*
* @return bool
* TRUE when in compact mode, or FALSE when in expanded mode.
......
<?php
/**
* @file
* Contains \Drupal\checklistapi\Tests\ChecklistapiControllerTest.
*/
namespace Drupal\Tests\checklistapi\Unit;
use Drupal\Tests\UnitTestCase;
use Drupal\checklistapi\Controller\ChecklistapiController;
/**
* @coversDefaultClass \Drupal\checklistapi\ChecklistapiController
* @group checklistapi
*/
class ChecklistapiControllerTest extends UnitTestCase {
/**
* Tests that setCompactMode() rejects an invalid mode.
*
* @covers \Drupal\checklistapi\Controller\ChecklistapiController::setCompactMode()
* @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
*/
public function testSetCompactModeToInvalidMode() {
$controller = new ChecklistapiController();
$controller->setCompactMode('invalid mode');
}
}
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