liip / liip/LiipFunctionalTestBundle

Default firewall option

Open
#345 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
648
Forks
179
PR merge metrics
No merged PRs in 30d

Description

Lot of Symfony projet use only one main firewall, so we have to regularly to make this:

```php
$this->loginAs($this->getReference('user_support'), 'main');
```

The `main` keyword is very redundant. It would be great to add a `default_login_firewall` parameter to the bundle in order to just do this:

```php
$this->loginAs($this->getReference('user_support'));
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the bundle's loginAs helper and its configuration handling. Add support for a default_login_firewall parameter so the firewall argument can be omitted when using the default, while keeping explicit firewall arguments working; verify the behavior with the bundle's existing functional test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, symfony
Domain
authentication, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.