@@ -29,15 +29,36 @@ public function testConfigTree($options, $results)
29
29
$ this ->assertEquals ($ results , $ config );
30
30
}
31
31
32
+ /**
33
+ * @dataProvider getPositionConfig
34
+ * @group legacy
35
+ * @expectedDeprecation The "web_profiler.position" configuration key has been deprecated in Symfony 3.4 and it will be removed in 4.0.
36
+ */
37
+ public function testPositionConfig ($ options , $ results )
38
+ {
39
+ $ processor = new Processor ();
40
+ $ configuration = new Configuration ();
41
+ $ config = $ processor ->processConfiguration ($ configuration , array ($ options ));
42
+
43
+ $ this ->assertEquals ($ results , $ config );
44
+ }
45
+
32
46
public function getDebugModes ()
33
47
{
34
48
return array (
35
49
array (array (), array ('intercept_redirects ' => false , 'toolbar ' => false , 'position ' => 'bottom ' , 'excluded_ajax_paths ' => '^/(app(_[ \\w]+)? \\.php/)?_wdt ' )),
36
50
array (array ('intercept_redirects ' => true ), array ('intercept_redirects ' => true , 'toolbar ' => false , 'position ' => 'bottom ' , 'excluded_ajax_paths ' => '^/(app(_[ \\w]+)? \\.php/)?_wdt ' )),
37
51
array (array ('intercept_redirects ' => false ), array ('intercept_redirects ' => false , 'toolbar ' => false , 'position ' => 'bottom ' , 'excluded_ajax_paths ' => '^/(app(_[ \\w]+)? \\.php/)?_wdt ' )),
38
52
array (array ('toolbar ' => true ), array ('intercept_redirects ' => false , 'toolbar ' => true , 'position ' => 'bottom ' , 'excluded_ajax_paths ' => '^/(app(_[ \\w]+)? \\.php/)?_wdt ' )),
39
- array (array ('position ' => 'top ' ), array ('intercept_redirects ' => false , 'toolbar ' => false , 'position ' => 'top ' , 'excluded_ajax_paths ' => '^/(app(_[ \\w]+)? \\.php/)?_wdt ' )),
40
53
array (array ('excluded_ajax_paths ' => 'test ' ), array ('intercept_redirects ' => false , 'toolbar ' => false , 'position ' => 'bottom ' , 'excluded_ajax_paths ' => 'test ' )),
41
54
);
42
55
}
56
+
57
+ public function getPositionConfig ()
58
+ {
59
+ return array (
60
+ array (array ('position ' => 'top ' ), array ('intercept_redirects ' => false , 'toolbar ' => false , 'excluded_ajax_paths ' => '^/(app(_[ \\w]+)? \\.php/)?_wdt ' , 'position ' => 'top ' )),
61
+ array (array ('position ' => 'bottom ' ), array ('intercept_redirects ' => false , 'toolbar ' => false , 'excluded_ajax_paths ' => '^/(app(_[ \\w]+)? \\.php/)?_wdt ' , 'position ' => 'bottom ' )),
62
+ );
63
+ }
43
64
}
0 commit comments