mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-12 16:58:37 +00:00
cs
This commit is contained in:
parent
91f78f26f2
commit
2725de8efb
1 changed files with 2 additions and 3 deletions
|
@ -3,7 +3,6 @@
|
||||||
namespace Wallabag\CoreBundle\Tests\Controller;
|
namespace Wallabag\CoreBundle\Tests\Controller;
|
||||||
|
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||||
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder;
|
|
||||||
|
|
||||||
class WallabagRestControllerTest extends WebTestCase
|
class WallabagRestControllerTest extends WebTestCase
|
||||||
{
|
{
|
||||||
|
@ -37,7 +36,7 @@ class WallabagRestControllerTest extends WebTestCase
|
||||||
$headers = array(
|
$headers = array(
|
||||||
'PHP_AUTH_USER' => 'username',
|
'PHP_AUTH_USER' => 'username',
|
||||||
'HTTP_AUTHORIZATION' => 'Authorization profile="UsernameToken"',
|
'HTTP_AUTHORIZATION' => 'Authorization profile="UsernameToken"',
|
||||||
'HTTP_x-wsse' => 'X-WSSE: UsernameToken Username="'.$username.'", PasswordDigest="'.$digest.'", Nonce="'.$nonce.'", Created="'.$created.'"'
|
'HTTP_x-wsse' => 'X-WSSE: UsernameToken Username="'.$username.'", PasswordDigest="'.$digest.'", Nonce="'.$nonce.'", Created="'.$created.'"',
|
||||||
);
|
);
|
||||||
|
|
||||||
$client->request('GET', '/api/entries', array(), array(), $headers);
|
$client->request('GET', '/api/entries', array(), array(), $headers);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue