Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"cakephp/cakephp": "^5.1.0",
"cakephp/cakephp-codesniffer": "^5.0",
"firebase/php-jwt": "^6.2",
"phpunit/phpunit": "^10.5.32 || ^11.3.3 || ^12.0.9"
"phpunit/phpunit": "^10.5.58 || ^11.5.3 || ^12.4"
},
"suggest": {
"ext-ldap": "Make sure this php extension is installed and enabled on your system if you want to use the built-in LDAP adapter for \"LdapIdentifier\".",
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/AuthenticationServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@
use Cake\I18n\DateTime;
use Cake\Routing\Router;
use InvalidArgumentException;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use PHPUnit\Runner\Version;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use stdClass;

#[AllowMockObjectsWithoutExpectations]
class AuthenticationServiceTest extends TestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Authenticator/AbstractAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
use Authentication\Authenticator\ResultInterface;
use Authentication\Identifier\IdentifierInterface;
use Authentication\Test\TestCase\AuthenticationTestCase as TestCase;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;

#[AllowMockObjectsWithoutExpectations]
class AbstractAuthenticatorTest extends TestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Authenticator/AuthenticatorCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
use Authentication\Authenticator\FormAuthenticator;
use Authentication\Identifier\IdentifierCollection;
use Cake\TestSuite\TestCase;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;

#[AllowMockObjectsWithoutExpectations]
class AuthenticatorCollectionTest extends TestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Authenticator/EnvironmentAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
use Authentication\Test\TestCase\AuthenticationTestCase as TestCase;
use Cake\Http\ServerRequestFactory;
use Cake\Routing\Router;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use RuntimeException;

#[AllowMockObjectsWithoutExpectations]
class EnvironmentAuthenticatorTest extends TestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Authenticator/FormAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
use Authentication\Test\TestCase\AuthenticationTestCase as TestCase;
use Cake\Http\ServerRequestFactory;
use Cake\Routing\Router;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use RuntimeException;

#[AllowMockObjectsWithoutExpectations]
class FormAuthenticatorTest extends TestCase
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@
use Cake\ORM\Entity;
use Cake\Routing\Router;
use InvalidArgumentException;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use TestApp\Authentication\InvalidAuthenticationService;
use UnexpectedValueException;

/**
* Authentication component test.
*/
#[AllowMockObjectsWithoutExpectations]
class AuthenticationComponentTest extends TestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Identifier/IdentifierCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
use Authentication\Identifier\IdentifierInterface;
use Authentication\Identifier\PasswordIdentifier;
use Authentication\Test\TestCase\AuthenticationTestCase as TestCase;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;

#[AllowMockObjectsWithoutExpectations]
class IdentifierCollectionTest extends TestCase
{
public function testConstruct()
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Identifier/LdapIdentifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
use Authentication\Identifier\LdapIdentifier;
use Authentication\Test\TestCase\AuthenticationTestCase as TestCase;
use ErrorException;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use stdClass;

#[AllowMockObjectsWithoutExpectations]
class LdapIdentifierTest extends TestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Identifier/PasswordIdentifierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
use Authentication\PasswordHasher\LegacyPasswordHasher;
use Authentication\PasswordHasher\PasswordHasherInterface;
use Authentication\Test\TestCase\AuthenticationTestCase as TestCase;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;

#[AllowMockObjectsWithoutExpectations]
class PasswordIdentifierTest extends TestCase
{
/**
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Identifier/Resolver/ResolverAwareTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
use Authentication\Identifier\Resolver\ResolverAwareTrait;
use Authentication\Identifier\Resolver\ResolverInterface;
use Cake\TestSuite\TestCase;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use TestApp\Identifier\Resolver\TestResolver;

#[AllowMockObjectsWithoutExpectations]
class ResolverAwareTraitTest extends TestCase
{
public function testBuildResolverFromClassName()
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Middleware/AuthenticationMiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@
use Cake\Http\Response;
use Cake\Http\ServerRequestFactory;
use Firebase\JWT\JWT;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
use TestApp\Application;
use TestApp\Http\TestRequestHandler;

#[AllowMockObjectsWithoutExpectations]
class AuthenticationMiddlewareTest extends TestCase
{
use ContainerStubTrait;
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/PasswordHasher/PasswordHasherTraitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@
use Authentication\PasswordHasher\PasswordHasherInterface;
use Authentication\PasswordHasher\PasswordHasherTrait;
use Cake\TestSuite\TestCase;
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;

/**
* Test case for PasswordHasherTrait
*/
#[AllowMockObjectsWithoutExpectations]
class PasswordHasherTraitTest extends TestCase
{
/**
Expand Down
22 changes: 22 additions & 0 deletions tests/test_app/Plugin/TestPlugin/src/TestPluginPlugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);

/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
* @link https://cakephp.org CakePHP(tm) Project
* @license https://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace TestPlugin;

use Cake\Core\BasePlugin;

class TestPluginPlugin extends BasePlugin
{
}