mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-350 Deprecate client
This commit is contained in:

committed by
Benoît Burnichon

parent
03d3975d87
commit
0007bf58be
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Tests\Phrasea\Controller\Client;
|
||||
use Symfony\Bundle\FrameworkBundle\Client;
|
||||
|
||||
/**
|
||||
* @group functional
|
||||
@@ -10,12 +11,12 @@ namespace Alchemy\Tests\Phrasea\Controller\Client;
|
||||
*/
|
||||
class RootTest extends \PhraseanetAuthenticatedWebTestCase
|
||||
{
|
||||
protected $client;
|
||||
|
||||
public function testGetClient()
|
||||
{
|
||||
$this->authenticate(self::$DI['app']);
|
||||
self::$DI['client']->request("GET", "/client/");
|
||||
$this->assertTrue(self::$DI['client']->getResponse()->isRedirect());
|
||||
/** @var Client $client */
|
||||
$client = self::$DI['client'];
|
||||
$client->request("GET", "/client/");
|
||||
$this->assertTrue($client->getResponse()->isRedirect());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user