Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
3ac5ffb6
Commit
3ac5ffb6
authored
9 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
DatabaseTest.php, Generic.sql: default of gender changed to make good tests
parent
34127973
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/phpunit/DatabaseTest.php
+2
-2
2 additions, 2 deletions
tests/phpunit/DatabaseTest.php
tests/phpunit/fixtures/Generic.sql
+1
-1
1 addition, 1 deletion
tests/phpunit/fixtures/Generic.sql
with
3 additions
and
3 deletions
tests/phpunit/DatabaseTest.php
+
2
−
2
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'
));
}
/**
...
...
This diff is collapsed.
Click to expand it.
tests/phpunit/fixtures/Generic.sql
+
1
−
1
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
''
);
...
...
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