Skip to content

Commit

Permalink
Merge pull request #641 from cakephp/fix-deprecation
Browse files Browse the repository at this point in the history
Fix deprecations
  • Loading branch information
ADmad authored Oct 1, 2023
2 parents 3dc8af2 + 46e801f commit 64964e5
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Identifier/Resolver/OrmResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function find(array $conditions, $type = self::TYPE_AND)
{
$table = $this->getTableLocator()->get($this->_config['userModel']);

$query = $table->query();
$query = $table->find();
$finders = (array)$this->_config['finder'];
foreach ($finders as $finder => $options) {
if (is_string($options)) {
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Authenticator/HttpBasicAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ class HttpBasicAuthenticatorTest extends TestCase
'core.Users',
];

/**
* @var \Authentication\IdentifierCollection
*/
protected $identifiers;

/**
* @var \Autnentication\Authenticator\HttpBasicAuthenticator
*/
protected $auth;

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Authenticator/HttpDigestAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ class HttpDigestAuthenticatorTest extends TestCase
'core.Users',
];

/**
* @var \Authentication\IdentifierCollection
*/
protected $identifiers;

/**
* @var \Autnentication\Authenticator\HttpDigestAuthenticator
*/
protected $auth;

/**
* setup
*
Expand Down
5 changes: 5 additions & 0 deletions tests/TestCase/Authenticator/JwtAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class JwtAuthenticatorTest extends TestCase
*/
public $identifiers;

/**
* @var \Cake\Http\ServerRequest
*/
protected $request;

/**
* @inheritDoc
*/
Expand Down
7 changes: 7 additions & 0 deletions tests/TestCase/Authenticator/SessionAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ class SessionAuthenticatorTest extends TestCase
'core.Users',
];

/**
* @var \Authentication\IdentifierCollection
*/
protected $identifiers;

protected $sessionMock;

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Authenticator/TokenAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ class TokenAuthenticatorTest extends TestCase
'core.Users',
];

/**
* @var \Authentication\IdentifierCollection
*/
protected $identifiers;

/**
* @var \Cake\Http\ServerRequest
*/
protected $request;

/**
* @inheritDoc
*/
Expand Down
10 changes: 10 additions & 0 deletions tests/TestCase/Middleware/AuthenticationMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@

class AuthenticationMiddlewareTest extends TestCase
{
/**
* @var \Authentication\AuthenticationService
*/
protected $service;

/**
* @var \TestApp\Application
*/
protected $application;

/**
* Fixtures
*/
Expand Down

0 comments on commit 64964e5

Please sign in to comment.