-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use doctrine for database statements
- Loading branch information
Showing
4 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/*************************************************************** | ||
* Copyright notice | ||
* | ||
* (c) 2016-2021 René Nitzsche <[email protected]> | ||
* (c) 2016-2024 René Nitzsche <[email protected]> | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
|
@@ -25,6 +25,7 @@ | |
* This copyright notice MUST APPEAR in all copies of the script! | ||
***************************************************************/ | ||
|
||
use Closure; | ||
use stdClass; | ||
use Sys25\RnBase\Database\Connection; | ||
use Sys25\RnBase\Domain\Model\BaseModel; | ||
|
@@ -213,7 +214,13 @@ public function testPersistExistingModel() | |
->method('doUpdate') | ||
->with( | ||
$this->equalTo('tt_content'), | ||
$this->equalTo('uid=7'), | ||
$this->callback( | ||
function ($where) { | ||
self::assertInstanceOf(Closure::class, $where); | ||
|
||
return true; | ||
} | ||
), | ||
$this->callback( | ||
function ($data) { | ||
self::assertTrue(is_array($data)); | ||
|