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
9f15acdb
Commit
9f15acdb
authored
Apr 14, 2010
by
Guilherme Blanco
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit 'opensky/master'
parents
26ff2656
c122953a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
OrmFunctionalTestCase.php
tests/Doctrine/Tests/OrmFunctionalTestCase.php
+10
-10
No files found.
tests/Doctrine/Tests/OrmFunctionalTestCase.php
View file @
9f15acdb
...
@@ -15,7 +15,7 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
...
@@ -15,7 +15,7 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
private
static
$_queryCacheImpl
=
null
;
private
static
$_queryCacheImpl
=
null
;
/* Shared connection when a TestCase is run alone (outside of it's functional suite) */
/* Shared connection when a TestCase is run alone (outside of it's functional suite) */
pr
ivate
static
$_sharedConn
;
pr
otected
static
$_sharedConn
;
/**
/**
* @var \Doctrine\ORM\EntityManager
* @var \Doctrine\ORM\EntityManager
...
@@ -33,13 +33,13 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
...
@@ -33,13 +33,13 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
protected
$_sqlLoggerStack
;
protected
$_sqlLoggerStack
;
/** The names of the model sets used in this testcase. */
/** The names of the model sets used in this testcase. */
pr
ivate
$_usedModelSets
=
array
();
pr
otected
$_usedModelSets
=
array
();
/** Whether the database schema has already been created. */
/** Whether the database schema has already been created. */
pr
ivate
static
$_tablesCreated
=
array
();
pr
otected
static
$_tablesCreated
=
array
();
/** List of model sets and their classes. */
/** List of model sets and their classes. */
pr
ivate
static
$_modelSets
=
array
(
pr
otected
static
$_modelSets
=
array
(
'cms'
=>
array
(
'cms'
=>
array
(
'Doctrine\Tests\Models\CMS\CmsUser'
,
'Doctrine\Tests\Models\CMS\CmsUser'
,
'Doctrine\Tests\Models\CMS\CmsPhonenumber'
,
'Doctrine\Tests\Models\CMS\CmsPhonenumber'
,
...
@@ -170,11 +170,11 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
...
@@ -170,11 +170,11 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
$forceCreateTables
=
false
;
$forceCreateTables
=
false
;
if
(
!
isset
(
$this
->
sharedFixture
[
'conn'
]))
{
if
(
!
isset
(
$this
->
sharedFixture
[
'conn'
]))
{
if
(
!
isset
(
s
elf
::
$_sharedConn
))
{
if
(
!
isset
(
s
tatic
::
$_sharedConn
))
{
s
elf
::
$_sharedConn
=
TestUtil
::
getConnection
();
s
tatic
::
$_sharedConn
=
TestUtil
::
getConnection
();
}
}
$this
->
sharedFixture
[
'conn'
]
=
s
elf
::
$_sharedConn
;
$this
->
sharedFixture
[
'conn'
]
=
s
tatic
::
$_sharedConn
;
if
(
$this
->
sharedFixture
[
'conn'
]
->
getDriver
()
instanceof
\Doctrine\DBAL\Driver\PDOSqlite\Driver
)
{
if
(
$this
->
sharedFixture
[
'conn'
]
->
getDriver
()
instanceof
\Doctrine\DBAL\Driver\PDOSqlite\Driver
)
{
$forceCreateTables
=
true
;
$forceCreateTables
=
true
;
...
@@ -189,12 +189,12 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
...
@@ -189,12 +189,12 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
$classes
=
array
();
$classes
=
array
();
foreach
(
$this
->
_usedModelSets
as
$setName
=>
$bool
)
{
foreach
(
$this
->
_usedModelSets
as
$setName
=>
$bool
)
{
if
(
!
isset
(
s
elf
::
$_tablesCreated
[
$setName
])
/* || $forceCreateTables*/
)
{
if
(
!
isset
(
s
tatic
::
$_tablesCreated
[
$setName
])
/* || $forceCreateTables*/
)
{
foreach
(
s
elf
::
$_modelSets
[
$setName
]
as
$className
)
{
foreach
(
s
tatic
::
$_modelSets
[
$setName
]
as
$className
)
{
$classes
[]
=
$this
->
_em
->
getClassMetadata
(
$className
);
$classes
[]
=
$this
->
_em
->
getClassMetadata
(
$className
);
}
}
s
elf
::
$_tablesCreated
[
$setName
]
=
true
;
s
tatic
::
$_tablesCreated
[
$setName
]
=
true
;
}
}
}
}
...
...
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