File tree Expand file tree Collapse file tree 5 files changed +29
-22
lines changed Expand file tree Collapse file tree 5 files changed +29
-22
lines changed Original file line number Diff line number Diff line change 50
50
<source >filter.label_name</source >
51
51
<target >Name</target >
52
52
</trans-unit >
53
- <trans-unit id =" list.label_path " >
54
- <source >list.label_path </source >
55
- <target >Pfad </target >
53
+ <trans-unit id =" list.label_id " >
54
+ <source >list.label_id </source >
55
+ <target >Id </target >
56
56
</trans-unit >
57
57
<trans-unit id =" form.group_general" >
58
58
<source >form.group_general</source >
70
70
<source >form.label_variable_pattern</source >
71
71
<target >Variablenmuster</target >
72
72
</trans-unit >
73
- <trans-unit id =" form.label_route_content " >
74
- <source >form.label_route_content </source >
73
+ <trans-unit id =" form.label_content " >
74
+ <source >form.label_content </source >
75
75
<target >Inhalt</target >
76
76
</trans-unit >
77
77
<trans-unit id =" form.label_defaults" >
Original file line number Diff line number Diff line change 50
50
<source >filter.label_name</source >
51
51
<target >Name</target >
52
52
</trans-unit >
53
- <trans-unit id =" list.label_path " >
54
- <source >list.label_path </source >
55
- <target >Path </target >
53
+ <trans-unit id =" list.label_id " >
54
+ <source >list.label_id </source >
55
+ <target >Id </target >
56
56
</trans-unit >
57
57
<trans-unit id =" form.group_general" >
58
58
<source >form.group_general</source >
70
70
<source >form.label_variable_pattern</source >
71
71
<target >Variable pattern</target >
72
72
</trans-unit >
73
- <trans-unit id =" form.label_route_content " >
74
- <source >form.label_route_content </source >
73
+ <trans-unit id =" form.label_content " >
74
+ <source >form.label_content </source >
75
75
<target >Content</target >
76
76
</trans-unit >
77
77
<trans-unit id =" form.label_defaults" >
Original file line number Diff line number Diff line change 50
50
<source >filter.label_name</source >
51
51
<target >Nom</target >
52
52
</trans-unit >
53
- <trans-unit id =" list.label_path " >
54
- <source >list.label_path </source >
55
- <target >Chemin </target >
53
+ <trans-unit id =" list.label_id " >
54
+ <source >list.label_id </source >
55
+ <target >Id </target >
56
56
</trans-unit >
57
57
<trans-unit id =" form.group_general" >
58
58
<source >form.group_general</source >
70
70
<source >form.label_variable_pattern</source >
71
71
<target >Motif variable</target >
72
72
</trans-unit >
73
- <trans-unit id =" form.label_route_content " >
74
- <source >form.label_route_content </source >
73
+ <trans-unit id =" form.label_content " >
74
+ <source >form.label_content </source >
75
75
<target >Contenu</target >
76
76
</trans-unit >
77
77
<trans-unit id =" form.label_defaults" >
Original file line number Diff line number Diff line change 50
50
<source >filter.label_name</source >
51
51
<target >Nazwa</target >
52
52
</trans-unit >
53
- <trans-unit id =" list.label_path" >
54
- <source >list.label_path</source >
55
- <target >Ścieżka</target >
56
- </trans-unit >
57
53
<trans-unit id =" list.label_id" >
58
54
<source >list.label_id</source >
59
55
<target >Ścieżka</target >
74
70
<source >form.label_variable_pattern</source >
75
71
<target >Wzór zmiennych</target >
76
72
</trans-unit >
77
- <trans-unit id =" form.label_route_content " >
78
- <source >form.label_route_content </source >
73
+ <trans-unit id =" form.label_content " >
74
+ <source >form.label_content </source >
79
75
<target >Zawartość</target >
80
76
</trans-unit >
81
77
<trans-unit id =" form.label_defaults" >
Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ protected function setUp()
35
35
public function testCorrectControllerPath ()
36
36
{
37
37
$ route = new Route ('/ ' , array ('_controller ' => 'FrameworkBundle:Redirect:redirect ' ));
38
+
39
+ $ this ->errorElement ->expects ($ this ->never ())
40
+ ->method ('with ' )
41
+ ;
42
+
38
43
$ this ->routeAdmin ->validate ($ this ->errorElement , $ route );
39
44
}
40
45
@@ -74,7 +79,13 @@ public function testTemplateViolation()
74
79
75
80
public function testCorrectTemplate ()
76
81
{
77
- $ route = new Route ('/ ' , array ('_template ' => 'TwigBundle::layout.html.twig ' ));
82
+ // the template 'TwigBundle::layout.html.twig' is not found in the test setup...
83
+ $ mockTemplate = $ this ->getMockBuilder ('Twig_Template ' )->disableOriginalConstructor ()->getMockForAbstractClass ();
84
+ $ route = new Route ('/ ' , array ('_template ' => $ mockTemplate ));
85
+ $ this ->errorElement ->expects ($ this ->never ())
86
+ ->method ('with ' )
87
+ ;
88
+
78
89
$ this ->routeAdmin ->validate ($ this ->errorElement , $ route );
79
90
}
80
91
}
You can’t perform that action at this time.
0 commit comments