Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
9d92bf81
Commit
9d92bf81
authored
Apr 07, 2015
by
webchick
Browse files
Issue
#2463103
by amateescu: SQLite: Fix system\Tests\Entity\FieldSqlStorageTest
parent
40c8a035
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/system/src/Tests/Entity/FieldSqlStorageTest.php
View file @
9d92bf81
...
...
@@ -355,9 +355,13 @@ function testFieldUpdateFailure() {
));
$field_storage
->
save
();
// Attempt to update the field in a way that would break the storage.
// Attempt to update the field in a way that would break the storage. The
// parenthesis suffix is needed because SQLite has *very* relaxed rules for
// data types, so we actually need to provide an invalid SQL syntax in order
// to break it.
// @see https://www.sqlite.org/datatype3.html
$prior_field_storage
=
$field_storage
;
$field_storage
->
setSetting
(
'max_length'
,
-
1
);
$field_storage
->
setSetting
(
'max_length'
,
'
-1)
'
)
;
try
{
$field_storage
->
save
();
$this
->
fail
(
t
(
'Update succeeded.'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment