11
11
12
12
namespace Symfony \Bundle \WebProfilerBundle \Tests \Controller ;
13
13
14
- use Symfony \Bundle \FrameworkBundle \Client ;
14
+ use Symfony \Bundle \FrameworkBundle \KernelBrowser ;
15
15
use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
16
16
use Symfony \Bundle \WebProfilerBundle \Controller \ProfilerController ;
17
17
use Symfony \Bundle \WebProfilerBundle \Csp \ContentSecurityPolicyHandler ;
@@ -45,7 +45,7 @@ public function testHomeActionWithProfilerDisabled()
45
45
public function testHomeActionRedirect ()
46
46
{
47
47
$ kernel = new WebProfilerBundleKernel ();
48
- $ client = new Client ($ kernel );
48
+ $ client = new KernelBrowser ($ kernel );
49
49
50
50
$ client ->request ('GET ' , '/_profiler/ ' );
51
51
@@ -56,7 +56,7 @@ public function testHomeActionRedirect()
56
56
public function testPanelActionWithLatestTokenWhenNoTokensExist ()
57
57
{
58
58
$ kernel = new WebProfilerBundleKernel ();
59
- $ client = new Client ($ kernel );
59
+ $ client = new KernelBrowser ($ kernel );
60
60
61
61
$ client ->request ('GET ' , '/_profiler/latest ' );
62
62
@@ -66,7 +66,7 @@ public function testPanelActionWithLatestTokenWhenNoTokensExist()
66
66
public function testPanelActionWithLatestToken ()
67
67
{
68
68
$ kernel = new WebProfilerBundleKernel ();
69
- $ client = new Client ($ kernel );
69
+ $ client = new KernelBrowser ($ kernel );
70
70
71
71
$ client ->request ('GET ' , '/ ' );
72
72
$ client ->request ('GET ' , '/_profiler/latest ' );
@@ -77,7 +77,7 @@ public function testPanelActionWithLatestToken()
77
77
public function testPane
8000
lActionWithoutValidToken ()
78
78
{
79
79
$ kernel = new WebProfilerBundleKernel ();
80
- $ client = new Client ($ kernel );
80
+ $ client = new KernelBrowser ($ kernel );
81
81
82
82
$ client ->request ('GET ' , '/_profiler/this-token-does-not-exist ' );
83
83
@@ -87,7 +87,7 @@ public function testPanelActionWithoutValidToken()
87
87
public function testPanelActionWithWrongPanel ()
88
88
{
89
89
$ kernel = new WebProfilerBundleKernel ();
90
- $ client = new Client ($ kernel );
90
+ $ client = new KernelBrowser ($ kernel );
91
91
92
92
$ client ->request ('GET ' , '/ ' );
93
93
$ client ->request ('GET ' , '/_profiler/latest?panel=this-panel-does-not-exist ' );
@@ -98,7 +98,7 @@ public function testPanelActionWithWrongPanel()
98
98
public function testPanelActionWithValidPanelAndToken ()
99
99
{
100
100
$ kernel = new WebProfilerBundleKernel ();
101
- $ client = new Client ($ kernel );
101
+ $ client = new KernelBrowser ($ kernel );
102
102
103
103
$ client ->request ('GET ' , '/ ' );
104
104
$ crawler = $ client ->request ('GET ' , '/_profiler/latest?panel=router ' );
@@ -224,7 +224,7 @@ public function testSearchBarActionWithProfilerDisabled()
224
224
public function testSearchBarActionDefaultPage ()
225
225
{
226
226
$ kernel = new WebProfilerBundleKernel ();
227
- $ client = new Client ($ kernel );
227
+ $ client = new KernelBrowser ($ kernel );
228
228
229
229
$ crawler = $ client ->request ('GET ' , '/_profiler/search_bar ' );
230
230
@@ -316,7 +316,7 @@ public function testSearchActionWithProfilerDisabled()
316
316
public function testSearchActionWithToken ()
317
317
{
318
318
$ kernel = new WebProfilerBundleKernel ();
319
- $ client = new Client ($ kernel );
319
+ $ client = new KernelBrowser ($ kernel );
320
320
321
321
$ client ->request ('GET ' , '/ ' );
322
322
$ token = $ client ->getResponse ()->headers ->get ('x-debug-token ' );
@@ -329,7 +329,7 @@ public function testSearchActionWithToken()
329
329
public function testSearchActionWithoutToken ()
330
330
{
331
331
$ kernel = new WebProfilerBundleKernel ();
332
- $ client = new Client ($ kernel );
332
+ $ client = new KernelBrowser ($ kernel );
333
333
$ client ->followRedirects ();
334
334
335
335
$ client ->request ('GET ' , '/ ' );
@@ -355,7 +355,7 @@ public function testPhpinfoActionWithProfilerDisabled()
355
355
public function testPhpinfoAction ()
356
356
{
357
357
$ kernel = new WebProfilerBundleKernel ();
358
- $ client = new Client ($ kernel );
358
+ $ client = new KernelBrowser ($ kernel );
359
359
360
360
$ client ->request ('GET ' , '/_profiler/phpinfo ' );
361
361
0 commit comments