File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 4
4
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5
5
* @license For full copyright and license information view LICENSE file distributed with this source code.
6
6
*/
7
+ use Ibexa \Core \Persistence \Legacy \Content \Gateway \DoctrineDatabase ;
8
+ use Ibexa \Core \Persistence \Legacy \Content \Gateway \DoctrineDatabase \QueryBuilder ;
9
+ use Ibexa \Core \Repository \ContentService ;
10
+ use Symfony \Bridge \PhpUnit \ClockMock ;
11
+
7
12
$ file = __DIR__ . '/../vendor/autoload.php ' ;
8
13
if (!file_exists ($ file )) {
9
14
throw new RuntimeException ('Install dependencies using composer to run the test suite. ' );
10
15
}
11
16
17
+ // Register ClockMock, as otherwise they are mocked until first method call.
18
+ // Those Mocks are needed for core integration setup.
19
+
20
+ ClockMock::register (DoctrineDatabase::class);
21
+ ClockMock::register (ContentService::class);
22
+ ClockMock::register (QueryBuilder::class);
23
+
12
24
$ autoload = require_once $ file ;
You can’t perform that action at this time.
0 commit comments