Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3485117
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3485117
Commits
b30d03cf
Commit
b30d03cf
authored
12 years ago
by
Damian Lee
Committed by
Tim Plunkett
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
created tests
parent
3a169279
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Drupal/views/Tests/ViewsStorageTest.php
+8
-7
8 additions, 7 deletions
lib/Drupal/views/Tests/ViewsStorageTest.php
with
8 additions
and
7 deletions
lib/Drupal/views/Tests/ViewsStorageTest.php
+
8
−
7
View file @
b30d03cf
...
...
@@ -135,21 +135,22 @@ function testConfigurableCRUD() {
}
// Save the newly created view, but modify the name.
// $created->set('name', 'archive_copy');
// $created->save();
$created
->
set
(
'name'
,
'archive_copy'
);
$created
->
set
(
'tag'
,
'changed'
);
$created
->
save
();
// // Load the newly saved config.
// $config = config('views.view.archive_copy');
// $this->assertFalse($config->isNew(), 'Loaded configuration is not new.');
// Load the newly saved config.
$config
=
config
(
'views.view.archive_copy'
);
$this
->
assertFalse
(
$config
->
isNew
(),
'New config has been loaded.'
);
$this
->
assertEqual
(
$created
->
tag
,
$config
->
get
(
'tag'
),
'A changed value has been saved.'
);
// Change a value and save.
$view
->
tag
=
'changed'
;
$view
->
save
();
debug
(
$view
->
tag
);
// Check value have been written to config.
$config
=
config
(
'views.view.archive'
)
->
get
();
debug
(
$config
[
'tag'
]);
$this
->
assertEqual
(
$view
->
tag
,
$config
[
'tag'
],
'View property saved to config.'
);
}
...
...
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