mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
cs: Fix code style (safe rules only).
This commit is contained in:
@@ -1,21 +1,10 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
/**
|
||||
* Chill is a software for social workers
|
||||
* Copyright (C) 2015 Champs Libres <info@champs-libres.coop>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\MainBundle\Tests;
|
||||
@@ -23,25 +12,26 @@ namespace Chill\MainBundle\Tests;
|
||||
use Symfony\Component\BrowserKit\Client;
|
||||
|
||||
/**
|
||||
* Provide useful methods for tests
|
||||
*
|
||||
* @author Julien Fastré <julien.fastre@champs-libres.coop>
|
||||
* @author Champs Libres <info@champs-libres.coop>
|
||||
* Provide useful methods for tests.
|
||||
*/
|
||||
class TestHelper
|
||||
{
|
||||
/**
|
||||
* create a client authenticated with an user
|
||||
*
|
||||
* @param WebTestCase $testCase
|
||||
* create a client authenticated with an user.
|
||||
*
|
||||
* @param mixed $username
|
||||
* @param mixed $password
|
||||
*
|
||||
* @return \Symfony\Component\BrowserKit\Client authenticated client
|
||||
*/
|
||||
public static function getAuthenticatedClientOptions($username = 'center a_social',
|
||||
$password = 'password')
|
||||
public static function getAuthenticatedClientOptions(
|
||||
$username = 'center a_social',
|
||||
$password = 'password'
|
||||
)
|
||||
{
|
||||
return array(
|
||||
'PHP_AUTH_USER' => $username,
|
||||
'PHP_AUTH_PW' => $password,
|
||||
);
|
||||
return [
|
||||
'PHP_AUTH_USER' => $username,
|
||||
'PHP_AUTH_PW' => $password,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user