Skip to content

Commit c877aad

Browse files
committed
Fix the functional test config to make it more simple
1 parent 3bf5d5b commit c877aad

File tree

4 files changed

+32
-10
lines changed

4 files changed

+32
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{% extends "::base.html.twig" %}
2+
3+
{% block body %}
4+
Hello {{ user.username }}!<br /><br />
5+
You're browsing to path "{{ app.request.pathInfo }}".
6+
7+
{% endblock %}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\SimpleLoginBundle;
13+
14+
use Symfony\Component\HttpKernel\Bundle\Bundle;
15+
16+
class SimpleLoginBundle extends Bundle
17+
{
18+
public function getParent()
19+
{
20+
return 'FormLoginBundle';
21+
}
22+
}

src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/SessionExpiration/bundles.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\FormLoginBundle\FormLoginBundle;
4+
use Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\SimpleLoginBundle\SimpleLoginBundle;
45
use Symfony\Bundle\TwigBundle\TwigBundle;
56
use Symfony\Bundle\SecurityBundle\SecurityBundle;
67
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
@@ -10,4 +11,5 @@
1011
new SecurityBundle(),
1112
new TwigBundle(),
1213
new FormLoginBundle(),
14+
new SimpleLoginBundle(),
1315
);

src/Symfony/Bundle/SecurityBundle/Tests/Functional/app/SessionExpiration/config.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,10 @@ security:
2323
form_login:
2424
check_path: /login_check
2525
default_target_path: /profile
26-
logout: ~
2726
anonymous: ~
2827
session_expiration:
2928
max_idle_time: 1
3029
expiration_url: /expired
3130

32-
# This firewall is here just to check its the logout functionality
33-
second_area:
34-
http_basic: ~
35-
anonymous: ~
36-
logout:
37-
target: /second/target
38-
path: /second/logout
39-
4031
access_control:
41-
- { path: .*, roles: IS_AUTHENTICATED_FULLY }
32+
- { path: .*, roles: IS_AUTHENTICATED_FULLY }

0 commit comments

Comments
 (0)