Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
cc7e4fef
Commit
cc7e4fef
authored
Feb 26, 2015
by
Steve Müller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #806 from zeroedin-bill/sqlsrv_functional_test_fixes
Fix broken functional test for SQL server
parents
6fb7312d
35771558
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
SQLServerSchemaManagerTest.php
...sts/DBAL/Functional/Schema/SQLServerSchemaManagerTest.php
+3
-3
No files found.
tests/Doctrine/Tests/DBAL/Functional/Schema/SQLServerSchemaManagerTest.php
View file @
cc7e4fef
...
@@ -55,7 +55,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
...
@@ -55,7 +55,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
public
function
testDefaultContraints
()
public
function
testDefaultContraints
()
{
{
$table
=
new
Table
(
'sqlsrv_d
f
_constraints'
);
$table
=
new
Table
(
'sqlsrv_d
efault
_constraints'
);
$table
->
addColumn
(
'no_default'
,
'string'
);
$table
->
addColumn
(
'no_default'
,
'string'
);
$table
->
addColumn
(
'df_integer'
,
'integer'
,
array
(
'default'
=>
666
));
$table
->
addColumn
(
'df_integer'
,
'integer'
,
array
(
'default'
=>
666
));
$table
->
addColumn
(
'df_string_1'
,
'string'
,
array
(
'default'
=>
'foobar'
));
$table
->
addColumn
(
'df_string_1'
,
'string'
,
array
(
'default'
=>
'foobar'
));
...
@@ -65,7 +65,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
...
@@ -65,7 +65,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
$table
->
addColumn
(
'df_boolean'
,
'boolean'
,
array
(
'default'
=>
true
));
$table
->
addColumn
(
'df_boolean'
,
'boolean'
,
array
(
'default'
=>
true
));
$this
->
_sm
->
createTable
(
$table
);
$this
->
_sm
->
createTable
(
$table
);
$columns
=
$this
->
_sm
->
listTableColumns
(
'sqlsrv_d
f
_constraints'
);
$columns
=
$this
->
_sm
->
listTableColumns
(
'sqlsrv_d
efault
_constraints'
);
$this
->
assertNull
(
$columns
[
'no_default'
]
->
getDefault
());
$this
->
assertNull
(
$columns
[
'no_default'
]
->
getDefault
());
$this
->
assertEquals
(
666
,
$columns
[
'df_integer'
]
->
getDefault
());
$this
->
assertEquals
(
666
,
$columns
[
'df_integer'
]
->
getDefault
());
...
@@ -75,7 +75,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
...
@@ -75,7 +75,7 @@ class SQLServerSchemaManagerTest extends SchemaManagerFunctionalTestCase
$this
->
assertEquals
(
1
,
$columns
[
'df_boolean'
]
->
getDefault
());
$this
->
assertEquals
(
1
,
$columns
[
'df_boolean'
]
->
getDefault
());
$diff
=
new
TableDiff
(
$diff
=
new
TableDiff
(
'sqlsrv_d
f
_constraints'
,
'sqlsrv_d
efault
_constraints'
,
array
(
array
(
new
Column
(
'df_current_timestamp'
,
Type
::
getType
(
'datetime'
),
array
(
'default'
=>
'CURRENT_TIMESTAMP'
))
new
Column
(
'df_current_timestamp'
,
Type
::
getType
(
'datetime'
),
array
(
'default'
=>
'CURRENT_TIMESTAMP'
))
),
),
...
...
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