Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
704c728e
Commit
704c728e
authored
Jun 12, 2019
by
Carsten Rose
Browse files
Fix unit test.
parent
67951ee2
Pipeline
#1958
passed with stages
in 2 minutes and 46 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Source/core/database/DatabaseUpdate.php
View file @
704c728e
...
...
@@ -125,16 +125,16 @@ class DatabaseUpdate {
if
(
$dbUpdate
===
SYSTEM_DB_UPDATE_NEVER
)
{
return
;
}
$old
=
false
;
$new
=
$this
->
getExtensionVersion
();
$versionInfo
=
$this
->
getDatabaseVersion
();
$old
=
$versionInfo
[
QFQ_VERSION_KEY
]
??
''
;
$old
=
$versionInfo
[
QFQ_VERSION_KEY
]
??
false
;
if
(
$dbUpdate
===
SYSTEM_DB_UPDATE_ALWAYS
||
(
$dbUpdate
===
SYSTEM_DB_UPDATE_AUTO
&&
$new
!=
$old
))
{
$newFunction
s
Hash
=
$this
->
updateSqlFunctions
(
$versionInfo
[
QFQ_VERSION_KEY_FUNCTION_HASH
]
??
''
);
if
(
null
!==
$newFunction
s
Hash
)
{
$versionInfo
[
QFQ_VERSION_KEY_FUNCTION_HASH
]
=
$newFunction
s
Hash
;
$newFunctionHash
=
$this
->
updateSqlFunctions
(
$versionInfo
[
QFQ_VERSION_KEY_FUNCTION_HASH
]
??
''
);
if
(
null
!==
$newFunctionHash
)
{
$versionInfo
[
QFQ_VERSION_KEY_FUNCTION_HASH
]
=
$newFunctionHash
;
$versionInfo
[
QFQ_VERSION_KEY_FUNCTION_VERSION
]
=
$new
;
}
...
...
extension/Tests/unit/core/database/DatabaseUpdateTest.php
View file @
704c728e
...
...
@@ -29,7 +29,8 @@ class DatabaseUpdateTest extends AbstractDatabaseTest {
*/
public
function
testCheckNupdate
()
{
$countQfqTables
=
8
;
// $countQfqTables = 8;
$countQfqTables
=
9
;
$dbUpdate
=
new
DatabaseUpdate
(
$this
->
dbArray
[
DB_INDEX_DEFAULT
]);
...
...
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