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
ad12b393
Unverified
Commit
ad12b393
authored
Jun 19, 2020
by
Sergei Morozov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AbstractPlatformTestCase::getGenerateForeignKeySql() is internal to the test and cannot return NULL
parent
15d9be0b
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
9 deletions
+9
-9
AbstractMySQLPlatformTestCase.php
...ne/Tests/DBAL/Platforms/AbstractMySQLPlatformTestCase.php
+1
-1
AbstractPlatformTestCase.php
...octrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php
+1
-1
AbstractPostgreSqlPlatformTestCase.php
...sts/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php
+1
-1
AbstractSQLServerPlatformTestCase.php
...ests/DBAL/Platforms/AbstractSQLServerPlatformTestCase.php
+1
-1
DB2PlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/DB2PlatformTest.php
+1
-1
OraclePlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php
+1
-1
SQLAnywherePlatformTest.php
...Doctrine/Tests/DBAL/Platforms/SQLAnywherePlatformTest.php
+1
-1
SqlitePlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/SqlitePlatformTest.php
+2
-2
No files found.
tests/Doctrine/Tests/DBAL/Platforms/AbstractMySQLPlatformTestCase.php
View file @
ad12b393
...
...
@@ -152,7 +152,7 @@ abstract class AbstractMySQLPlatformTestCase extends AbstractPlatformTestCase
return
'CREATE UNIQUE INDEX index_name ON test (test, test2)'
;
}
p
ublic
function
getGenerateForeignKeySql
()
:
string
p
rotected
function
getGenerateForeignKeySql
()
:
string
{
return
'ALTER TABLE test ADD FOREIGN KEY (fk_name_id) REFERENCES other_table (id)'
;
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php
View file @
ad12b393
...
...
@@ -250,7 +250,7 @@ abstract class AbstractPlatformTestCase extends DbalTestCase
self
::
assertEquals
(
$sql
,
$this
->
getGenerateForeignKeySql
());
}
abstract
p
ublic
function
getGenerateForeignKeySql
()
:
string
;
abstract
p
rotected
function
getGenerateForeignKeySql
()
:
string
;
public
function
testGeneratesConstraintCreationSql
()
:
void
{
...
...
tests/Doctrine/Tests/DBAL/Platforms/AbstractPostgreSqlPlatformTestCase.php
View file @
ad12b393
...
...
@@ -65,7 +65,7 @@ abstract class AbstractPostgreSqlPlatformTestCase extends AbstractPlatformTestCa
return
'CREATE INDEX my_idx ON mytable (user_name, last_login)'
;
}
p
ublic
function
getGenerateForeignKeySql
()
:
string
p
rotected
function
getGenerateForeignKeySql
()
:
string
{
return
'ALTER TABLE test ADD FOREIGN KEY (fk_name_id) REFERENCES other_table (id) NOT DEFERRABLE INITIALLY IMMEDIATE'
;
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/AbstractSQLServerPlatformTestCase.php
View file @
ad12b393
...
...
@@ -181,7 +181,7 @@ abstract class AbstractSQLServerPlatformTestCase extends AbstractPlatformTestCas
return
'CREATE UNIQUE INDEX index_name ON test (test, test2) WHERE test IS NOT NULL AND test2 IS NOT NULL'
;
}
p
ublic
function
getGenerateForeignKeySql
()
:
string
p
rotected
function
getGenerateForeignKeySql
()
:
string
{
return
'ALTER TABLE test ADD FOREIGN KEY (fk_name_id) REFERENCES other_table (id)'
;
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/DB2PlatformTest.php
View file @
ad12b393
...
...
@@ -42,7 +42,7 @@ class DB2PlatformTest extends AbstractPlatformTestCase
];
}
p
ublic
function
getGenerateForeignKeySql
()
:
string
p
rotected
function
getGenerateForeignKeySql
()
:
string
{
return
'ALTER TABLE test ADD FOREIGN KEY (fk_name_id) REFERENCES other_table (id)'
;
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/OraclePlatformTest.php
View file @
ad12b393
...
...
@@ -234,7 +234,7 @@ class OraclePlatformTest extends AbstractPlatformTestCase
return
'CREATE UNIQUE INDEX index_name ON test (test, test2)'
;
}
p
ublic
function
getGenerateForeignKeySql
()
:
string
p
rotected
function
getGenerateForeignKeySql
()
:
string
{
return
'ALTER TABLE test ADD FOREIGN KEY (fk_name_id) REFERENCES other_table (id)'
;
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/SQLAnywherePlatformTest.php
View file @
ad12b393
...
...
@@ -43,7 +43,7 @@ class SQLAnywherePlatformTest extends AbstractPlatformTestCase
];
}
p
ublic
function
getGenerateForeignKeySql
()
:
string
p
rotected
function
getGenerateForeignKeySql
()
:
string
{
return
'ALTER TABLE test ADD FOREIGN KEY (fk_name_id) REFERENCES other_table (id)'
;
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/SqlitePlatformTest.php
View file @
ad12b393
...
...
@@ -286,9 +286,9 @@ class SqlitePlatformTest extends AbstractPlatformTestCase
parent
::
testGeneratesConstraintCreationSql
();
}
p
ublic
function
getGenerateForeignKeySql
()
:
string
p
rotected
function
getGenerateForeignKeySql
()
:
string
{
return
null
;
return
''
;
}
public
function
testModifyLimitQuery
()
:
void
...
...
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