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
3fa94ec7
Commit
3fa94ec7
authored
Dec 11, 2015
by
Thomas Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #2253
parent
2241ee4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
SchemaManagerFunctionalTestCase.php
...BAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
+14
-4
No files found.
tests/Doctrine/Tests/DBAL/Functional/Schema/SchemaManagerFunctionalTestCase.php
View file @
3fa94ec7
...
...
@@ -4,6 +4,7 @@ namespace Doctrine\Tests\DBAL\Functional\Schema;
use
Doctrine\Common\EventManager
;
use
Doctrine\DBAL\Events
;
use
Doctrine\DBAL\Platforms\OraclePlatform
;
use
Doctrine\DBAL\Schema\Column
;
use
Doctrine\DBAL\Schema\ColumnDiff
;
use
Doctrine\DBAL\Schema\Comparator
;
...
...
@@ -51,10 +52,19 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this
->
_sm
->
dropAndCreateDatabase
(
'test_drop_database'
);
$this
->
assertContains
(
'test_drop_database'
,
$this
->
_sm
->
listDatabases
());
$knownDatabases
=
$this
->
_sm
->
listDatabases
();
if
(
$this
->
_conn
->
getDatabasePlatform
()
instanceof
OraclePlatform
)
{
$this
->
assertContains
(
'TEST_DROP_DATABASE'
,
$knownDatabases
);
}
else
{
$this
->
assertContains
(
'test_drop_database'
,
$knownDatabases
);
}
$params
=
$this
->
_conn
->
getParams
();
$params
[
'dbname'
]
=
'test_drop_database'
;
if
(
$this
->
_conn
->
getDatabasePlatform
()
instanceof
OraclePlatform
)
{
$params
[
'user'
]
=
'test_drop_database'
;
}
else
{
$params
[
'dbname'
]
=
'test_drop_database'
;
}
$user
=
isset
(
$params
[
'user'
])
?
$params
[
'user'
]
:
null
;
$password
=
isset
(
$params
[
'password'
])
?
$params
[
'password'
]
:
null
;
...
...
@@ -63,11 +73,11 @@ class SchemaManagerFunctionalTestCase extends \Doctrine\Tests\DbalFunctionalTest
$this
->
assertInstanceOf
(
'Doctrine\DBAL\Driver\Connection'
,
$connection
);
unset
(
$connection
);
$this
->
_sm
->
dropDatabase
(
'test_drop_database'
);
$this
->
assertNotContains
(
'test_drop_database'
,
$this
->
_sm
->
listDatabases
());
unset
(
$connection
);
}
/**
...
...
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