Skip to content

Commit ab29a44

Browse files
authored
Merge pull request #123 from cakephp/fix-tests
cake5: fix tests
2 parents cd764e5 + 3945fc9 commit ab29a44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Model/Table/FailedJobsTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @method \Cake\Queue\Model\Entity\FailedJob newEmptyEntity()
1313
* @method \Cake\Queue\Model\Entity\FailedJob newEntity(array $data, array $options = [])
1414
* @method \Cake\Queue\Model\Entity\FailedJob[] newEntities(array $data, array $options = [])
15-
* @method \Cake\Queue\Model\Entity\FailedJob get($primaryKey, $options = [])
15+
* @method \Cake\Queue\Model\Entity\FailedJob get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, ...$args)
1616
* @method \Cake\Queue\Model\Entity\FailedJob findOrCreate($search, ?callable $callback = null, $options = [])
1717
* @method \Cake\Queue\Model\Entity\FailedJob patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = [])
1818
* @method \Cake\Queue\Model\Entity\FailedJob[] patchEntities(iterable $entities, array $data, array $options = [])

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Cake\Core\Configure;
2020
use Cake\Routing\Router;
2121
use Cake\TestSuite\Fixture\SchemaLoader;
22+
use function Cake\Core\env;
2223

2324
$findRoot = function ($root) {
2425
do {
@@ -34,7 +35,6 @@
3435
unset($findRoot);
3536
chdir($root);
3637

37-
require_once 'vendor/cakephp/cakephp/src/basics.php';
3838
require_once 'vendor/autoload.php';
3939

4040
define('CORE_PATH', $root . DS . 'vendor' . DS . 'cakephp' . DS . 'cakephp' . DS);

0 commit comments

Comments
 (0)