We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d39c21b commit d65299aCopy full SHA for d65299a
tests/Controller/ApiV1RedirectControllerTest.php
@@ -4,18 +4,15 @@
4
5
namespace App\Tests\Controller;
6
7
-use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
+use App\Tests\AbstractBaseApiTestCase;
8
9
-class ApiV1RedirectControllerTest extends WebTestCase
+class ApiV1RedirectControllerTest extends AbstractBaseApiTestCase
10
{
11
public function testIndex()
12
13
- $client = static::createClient();
+ $client = $this->getAuthenticatedClient('ROLE_ADMIN');
14
$crawler = $client->request('GET', '/v1/screens/01GN9PW2Z03V8VQG7SN6Q9R17H');
15
16
$this->assertResponseRedirects('/v2/screens/01GN9PW2Z03V8VQG7SN6Q9R17H', 301);
17
-
18
- $client->followRedirect();
19
- $this->assertResponseIsSuccessful();
20
}
21
0 commit comments