Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
255d9883
Commit
255d9883
authored
13 years ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1045786
by Désiré, droplet: Fixed Length of Trimmed Description.
parent
5f46023c
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/modules/aggregator/aggregator.processor.inc
+1
-1
1 addition, 1 deletion
core/modules/aggregator/aggregator.processor.inc
core/modules/aggregator/aggregator.test
+31
-0
31 additions, 0 deletions
core/modules/aggregator/aggregator.test
with
32 additions
and
1 deletion
core/modules/aggregator/aggregator.processor.inc
+
1
−
1
View file @
255d9883
...
...
@@ -117,7 +117,7 @@ function aggregator_form_aggregator_admin_form_alter(&$form, $form_state) {
$form
[
'modules'
][
'aggregator'
][
'aggregator_teaser_length'
]
=
array
(
'#type'
=>
'select'
,
'#title'
=>
t
(
'Length of trimmed description'
),
'#default_value'
=>
600
,
'#default_value'
=>
variable_get
(
'aggregator_teaser_length'
,
600
)
,
'#options'
=>
drupal_map_assoc
(
array
(
0
,
200
,
400
,
600
,
800
,
1000
,
1200
,
1400
,
1600
,
1800
,
2000
),
'_aggregator_characters'
),
'#description'
=>
t
(
"The maximum number of characters used in the trimmed version of content."
)
);
...
...
This diff is collapsed.
Click to expand it.
core/modules/aggregator/aggregator.test
+
31
−
0
View file @
255d9883
...
...
@@ -278,6 +278,37 @@ EOF;
}
}
/**
* Tests aggregator configuration settings.
*/
class
AggregatorConfigurationTestCase
extends
AggregatorTestCase
{
public
static
function
getInfo
()
{
return
array
(
'name'
=>
'Aggregator configuration'
,
'description'
=>
'Test aggregator settings page.'
,
'group'
=>
'Aggregator'
,
);
}
/**
* Tests the settings form to ensure the correct default values are used.
*/
function
testSettingsPage
()
{
$edit
=
array
(
'aggregator_allowed_html_tags'
=>
'<a>'
,
'aggregator_summary_items'
=>
10
,
'aggregator_clear'
=>
3600
,
'aggregator_category_selector'
=>
'select'
,
'aggregator_teaser_length'
=>
200
,
);
$this
->
drupalPost
(
'admin/config/services/aggregator/settings'
,
$edit
,
t
(
'Save configuration'
));
foreach
(
$edit
as
$name
=>
$value
)
{
$this
->
assertFieldByName
(
$name
,
$value
,
t
(
'"@name" has correct default value.'
,
array
(
'@name'
=>
$name
)));
}
}
}
class
AddFeedTestCase
extends
AggregatorTestCase
{
public
static
function
getInfo
()
{
return
array
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment