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
94414675
Commit
94414675
authored
Jun 13, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Sharding] Move Synchronizer Test code, fix namespace
parent
9be7c306
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
SingleDatabaseSynchronizer.php
...e/DBAL/Schema/Synchronizer/SingleDatabaseSynchronizer.php
+1
-1
SingleDatabaseSynchronizerTest.php
...AL/Schema/Synchronizer/SingleDatabaseSynchronizerTest.php
+5
-5
SQLAzureFederationsSynchronizerTest.php
...Sharding/SQLAzure/SQLAzureFederationsSynchronizerTest.php
+5
-5
No files found.
lib/Doctrine/DBAL/Schema/Synchronizer/SingleDatabaseSynchronizer.php
View file @
94414675
...
...
@@ -16,7 +16,7 @@
* and is licensed under the MIT license. For more information, see
* <http://www.doctrine-project.org>.
*/
namespace
Doctrine\DBAL\S
harding
;
namespace
Doctrine\DBAL\S
chema\Synchronizer
;
use
Doctrine\DBAL\Connection
;
use
Doctrine\DBAL\Schema\Schema
;
...
...
tests/Doctrine/Tests/DBAL/S
harding/DefaultSchema
SynchronizerTest.php
→
tests/Doctrine/Tests/DBAL/S
chema/Synchronizer/SingleDatabase
SynchronizerTest.php
View file @
94414675
...
...
@@ -13,17 +13,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the
LGPL
. For more information, see
* and is licensed under the
MIT license
. For more information, see
* <http://www.doctrine-project.org>.
*/
namespace
Doctrine\Tests\DBAL\S
harding
;
namespace
Doctrine\Tests\DBAL\S
chema\Synchronizer
;
use
Doctrine\DBAL\DriverManager
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\DBAL\S
harding\DefaultSchema
Synchronizer
;
use
Doctrine\DBAL\S
chema\Synchronizer\SingleDatabase
Synchronizer
;
class
DefaultSchema
SynchronizerTest
extends
\PHPUnit_Framework_TestCase
class
SingleDatabase
SynchronizerTest
extends
\PHPUnit_Framework_TestCase
{
private
$conn
;
private
$synchronizer
;
...
...
@@ -34,7 +34,7 @@ class DefaultSchemaSynchronizerTest extends \PHPUnit_Framework_TestCase
'driver'
=>
'pdo_sqlite'
,
'memory'
=>
true
,
));
$this
->
synchronizer
=
new
DefaultSchema
Synchronizer
(
$this
->
conn
);
$this
->
synchronizer
=
new
SingleDatabase
Synchronizer
(
$this
->
conn
);
}
public
function
testGetCreateSchema
()
...
...
tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/SQLAzure
Schema
SynchronizerTest.php
→
tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/SQLAzure
Federations
SynchronizerTest.php
View file @
94414675
...
...
@@ -2,15 +2,15 @@
namespace
Doctrine\Tests\DBAL\Sharding\SQLAzure
;
use
Doctrine\DBAL\Schema\Schema
;
use
Doctrine\DBAL\Sharding\SQLAzure\SQLAzure
Schema
Synchronizer
;
use
Doctrine\DBAL\Sharding\SQLAzure\SQLAzure
Federations
Synchronizer
;
class
SQLAzure
Schema
SynchronizerTest
extends
AbstractTestCase
class
SQLAzure
Federations
SynchronizerTest
extends
AbstractTestCase
{
public
function
testCreateSchema
()
{
$schema
=
$this
->
createShopSchema
();
$synchronizer
=
new
SQLAzure
Schema
Synchronizer
(
$this
->
conn
,
$this
->
sm
);
$synchronizer
=
new
SQLAzure
Federations
Synchronizer
(
$this
->
conn
,
$this
->
sm
);
$sql
=
$synchronizer
->
getCreateSchema
(
$schema
);
$this
->
assertEquals
(
array
(
...
...
@@ -27,7 +27,7 @@ class SQLAzureSchemaSynchronizerTest extends AbstractTestCase
{
$schema
=
$this
->
createShopSchema
();
$synchronizer
=
new
SQLAzure
Schema
Synchronizer
(
$this
->
conn
,
$this
->
sm
);
$synchronizer
=
new
SQLAzure
Federations
Synchronizer
(
$this
->
conn
,
$this
->
sm
);
$synchronizer
->
dropAllSchema
();
$sql
=
$synchronizer
->
getUpdateSchema
(
$schema
);
...
...
@@ -39,7 +39,7 @@ class SQLAzureSchemaSynchronizerTest extends AbstractTestCase
{
$schema
=
$this
->
createShopSchema
();
$synchronizer
=
new
SQLAzure
Schema
Synchronizer
(
$this
->
conn
,
$this
->
sm
);
$synchronizer
=
new
SQLAzure
Federations
Synchronizer
(
$this
->
conn
,
$this
->
sm
);
$synchronizer
->
dropAllSchema
();
$synchronizer
->
createSchema
(
$schema
);
$sql
=
$synchronizer
->
getDropSchema
(
$schema
);
...
...
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