Commit 605077bc authored by webchick's avatar webchick

Issue #2046531 by olli, DuaelFr, dawehner: Change use_more_always to default to TRUE.

parent 3cd71ea0
......@@ -546,7 +546,7 @@ protected function defineOptions() {
'bool' => TRUE,
),
'use_more_always' => array(
'default' => FALSE,
'default' => TRUE,
'bool' => TRUE,
),
'use_more_text' => array(
......
......@@ -225,6 +225,10 @@ public function testReadMore() {
$this->drupalSetContent($output);
$result = $this->xpath('//div[@class=:class]/a', array(':class' => 'more-link'));
$this->assertTrue(empty($result), 'The more link is not shown when view has more records.');
// Test the default value of use_more_always.
$view = entity_create('view', array())->getExecutable();
$this->assertTrue($view->getDisplay()->getOption('use_more_always'), 'Always display the more link by default.');
}
/**
......
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