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
4dc7b9ed
Unverified
Commit
4dc7b9ed
authored
Jun 28, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an always skipped test for unsupported driver
parent
b6a19efc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
SqliteSchemaManagerTest.php
.../Tests/DBAL/Functional/Schema/SqliteSchemaManagerTest.php
+0
-32
No files found.
tests/Doctrine/Tests/DBAL/Functional/Schema/SqliteSchemaManagerTest.php
View file @
4dc7b9ed
...
...
@@ -9,11 +9,7 @@ use Doctrine\DBAL\Schema\Table;
use
Doctrine\DBAL\Types\BlobType
;
use
Doctrine\DBAL\Types\Type
;
use
Doctrine\DBAL\Types\Types
;
use
SQLite3
;
use
function
array_map
;
use
function
dirname
;
use
function
extension_loaded
;
use
function
version_compare
;
class
SqliteSchemaManagerTest
extends
SchemaManagerFunctionalTestCase
{
...
...
@@ -159,34 +155,6 @@ EOS
self
::
assertFalse
(
$table
->
getColumn
(
'column_binary'
)
->
getFixed
());
}
public
function
testNonDefaultPKOrder
()
:
void
{
if
(
!
extension_loaded
(
'sqlite3'
))
{
$this
->
markTestSkipped
(
'This test requires the SQLite3 extension.'
);
}
$version
=
SQLite3
::
version
();
if
(
version_compare
(
$version
[
'versionString'
],
'3.7.16'
,
'<'
))
{
$this
->
markTestSkipped
(
'This version of sqlite doesn\'t return the order of the Primary Key.'
);
}
$this
->
connection
->
exec
(
<<<EOS
CREATE TABLE non_default_pk_order (
id INTEGER,
other_id INTEGER,
PRIMARY KEY(other_id, id)
)
EOS
);
$tableIndexes
=
$this
->
schemaManager
->
listTableIndexes
(
'non_default_pk_order'
);
self
::
assertCount
(
1
,
$tableIndexes
);
self
::
assertArrayHasKey
(
'primary'
,
$tableIndexes
,
'listTableIndexes() has to return a "primary" array key.'
);
self
::
assertEquals
([
'other_id'
,
'id'
],
array_map
(
'strtolower'
,
$tableIndexes
[
'primary'
]
->
getColumns
()));
}
/**
* @group DBAL-1779
*/
...
...
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