Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
3ac5ffb6
Commit
3ac5ffb6
authored
Jan 17, 2016
by
Carsten Rose
Browse files
DatabaseTest.php, Generic.sql: default of gender changed to make good tests
parent
34127973
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/phpunit/DatabaseTest.php
View file @
3ac5ffb6
...
...
@@ -199,11 +199,11 @@ class DatabaseTest extends AbstractDatabaseTest {
[
'Field'
=>
'id'
,
'Type'
=>
'bigint(20)'
,
'Null'
=>
'NO'
,
'Key'
=>
'PRI'
,
'Default'
=>
''
,
'Extra'
=>
'auto_increment'
],
[
'Field'
=>
'name'
,
'Type'
=>
'varchar(128)'
,
'Null'
=>
'YES'
,
'Key'
=>
''
,
'Default'
=>
''
,
'Extra'
=>
''
],
[
'Field'
=>
'firstname'
,
'Type'
=>
'varchar(128)'
,
'Null'
=>
'YES'
,
'Key'
=>
''
,
'Default'
=>
''
,
'Extra'
=>
''
],
[
'Field'
=>
'gender'
,
'Type'
=>
"enum('','male','female')"
,
'Null'
=>
'NO'
,
'Key'
=>
''
,
'Default'
=>
''
,
'Extra'
=>
''
],
[
'Field'
=>
'gender'
,
'Type'
=>
"enum('','male','female')"
,
'Null'
=>
'NO'
,
'Key'
=>
''
,
'Default'
=>
'
male
'
,
'Extra'
=>
''
],
[
'Field'
=>
'groups'
,
'Type'
=>
"set('','a','b','c')"
,
'Null'
=>
'NO'
,
'Key'
=>
''
,
'Default'
=>
''
,
'Extra'
=>
''
],
];
$this
->
assertEquals
(
$expected
,
$this
->
db
->
getTableDefinition
(
'
p
erson'
));
$this
->
assertEquals
(
$expected
,
$this
->
db
->
getTableDefinition
(
'
P
erson'
));
}
/**
...
...
tests/phpunit/fixtures/Generic.sql
View file @
3ac5ffb6
...
...
@@ -3,7 +3,7 @@ CREATE TABLE Person (
id
BIGINT
AUTO_INCREMENT
PRIMARY
KEY
,
name
VARCHAR
(
128
),
firstname
VARCHAR
(
128
),
gender
ENUM
(
''
,
'male'
,
'female'
)
NOT
NULL
DEFAULT
''
,
gender
ENUM
(
''
,
'male'
,
'female'
)
NOT
NULL
DEFAULT
'
male
'
,
groups
SET
(
''
,
'a'
,
'b'
,
'c'
)
NOT
NULL
DEFAULT
''
);
...
...
Write
Preview
Supports
Markdown
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