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
f02547ab
Commit
f02547ab
authored
Jan 21, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DBAL-205 - Remove test that only works with 2.2 and above.
parent
6c071296
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
24 deletions
+1
-24
SchemaManagerFunctionalTestCase.php
...BAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
+1
-24
No files found.
tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
View file @
f02547ab
...
...
@@ -535,28 +535,5 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
}
$this
->
assertTrue
(
$foundTable
,
"Could not find new table"
);
}
public
function
testListForeignKeysComposite
()
{
if
(
!
$this
->
_conn
->
getDatabasePlatform
()
->
supportsForeignKeyConstraints
())
{
$this
->
markTestSkipped
(
'Does not support foreign key constraints.'
);
}
$this
->
_sm
->
createTable
(
$this
->
getTestTable
(
'test_create_fk3'
));
$this
->
_sm
->
createTable
(
$this
->
getTestCompositeTable
(
'test_create_fk4'
));
$foreignKey
=
new
\Doctrine\DBAL\Schema\ForeignKeyConstraint
(
array
(
'id'
,
'foreign_key_test'
),
'test_create_fk4'
,
array
(
'id'
,
'other_id'
),
'foreign_key_test_fk'
);
$this
->
_sm
->
createForeignKey
(
$foreignKey
,
'test_create_fk3'
);
$fkeys
=
$this
->
_sm
->
listTableForeignKeys
(
'test_create_fk3'
);
$this
->
assertEquals
(
1
,
count
(
$fkeys
),
"Table 'test_create_fk3' has to have one foreign key."
);
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Schema\ForeignKeyConstraint'
,
$fkeys
[
0
]);
$this
->
assertEquals
(
array
(
'id'
,
'foreign_key_test'
),
array_map
(
'strtolower'
,
$fkeys
[
0
]
->
getLocalColumns
()));
$this
->
assertEquals
(
array
(
'id'
,
'other_id'
),
array_map
(
'strtolower'
,
$fkeys
[
0
]
->
getForeignColumns
()));
}
}
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