mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-01 06:26:15 +00:00
update return type for prepare client trait
This commit is contained in:
parent
9641fd3fcc
commit
af24637dc4
@ -17,12 +17,11 @@
|
||||
*/
|
||||
namespace Chill\MainBundle\Test;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
/**
|
||||
* Prepare a client authenticated with a user
|
||||
*
|
||||
* @author Julien Fastré <julien.fastre@champs-libres.coop>
|
||||
*/
|
||||
trait PrepareClientTrait
|
||||
{
|
||||
@ -37,7 +36,7 @@ trait PrepareClientTrait
|
||||
public function getClientAuthenticated(
|
||||
$username = 'center a_social',
|
||||
$password = 'password'
|
||||
) {
|
||||
): KernelBrowser {
|
||||
if (!$this instanceof WebTestCase) {
|
||||
throw new \LogicException(sprintf("The current class does not "
|
||||
. "implements %s", WebTestCase::class));
|
||||
|
Loading…
x
Reference in New Issue
Block a user