Skip to content

Commit 3d4fd56

Browse files
committed
avoid a weird testing failure with latest symfony 2.3, fix translations for sonata
1 parent 958a4da commit 3d4fd56

File tree

5 files changed

+29
-22
lines changed

5 files changed

+29
-22
lines changed

Resources/translations/CmfRoutingBundle.de.xliff

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
<source>filter.label_name</source>
5151
<target>Name</target>
5252
</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>
5656
</trans-unit>
5757
<trans-unit id="form.group_general">
5858
<source>form.group_general</source>
@@ -70,8 +70,8 @@
7070
<source>form.label_variable_pattern</source>
7171
<target>Variablenmuster</target>
7272
</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>
7575
<target>Inhalt</target>
7676
</trans-unit>
7777
<trans-unit id="form.label_defaults">

Resources/translations/CmfRoutingBundle.en.xliff

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
<source>filter.label_name</source>
5151
<target>Name</target>
5252
</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>
5656
</trans-unit>
5757
<trans-unit id="form.group_general">
5858
<source>form.group_general</source>
@@ -70,8 +70,8 @@
7070
<source>form.label_variable_pattern</source>
7171
<target>Variable pattern</target>
7272
</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>
7575
<target>Content</target>
7676
</trans-unit>
7777
<trans-unit id="form.label_defaults">

Resources/translations/CmfRoutingBundle.fr.xliff

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
<source>filter.label_name</source>
5151
<target>Nom</target>
5252
</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>
5656
</trans-unit>
5757
<trans-unit id="form.group_general">
5858
<source>form.group_general</source>
@@ -70,8 +70,8 @@
7070
<source>form.label_variable_pattern</source>
7171
<target>Motif variable</target>
7272
</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>
7575
<target>Contenu</target>
7676
</trans-unit>
7777
<trans-unit id="form.label_defaults">

Resources/translations/CmfRoutingBundle.pl.xliff

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@
5050
<source>filter.label_name</source>
5151
<target>Nazwa</target>
5252
</trans-unit>
53-
<trans-unit id="list.label_path">
54-
<source>list.label_path</source>
55-
<target>Ścieżka</target>
56-
</trans-unit>
5753
<trans-unit id="list.label_id">
5854
<source>list.label_id</source>
5955
<target>Ścieżka</target>
@@ -74,8 +70,8 @@
7470
<source>form.label_variable_pattern</source>
7571
<target>Wzór zmiennych</target>
7672
</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>
7975
<target>Zawartość</target>
8076
</trans-unit>
8177
<trans-unit id="form.label_defaults">

Tests/Functional/Admin/RouteAdminTest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ protected function setUp()
3535
public function testCorrectControllerPath()
3636
{
3737
$route = new Route('/', array('_controller' => 'FrameworkBundle:Redirect:redirect'));
38+
39+
$this->errorElement->expects($this->never())
40+
->method('with')
41+
;
42+
3843
$this->routeAdmin->validate($this->errorElement, $route);
3944
}
4045

@@ -74,7 +79,13 @@ public function testTemplateViolation()
7479

7580
public function testCorrectTemplate()
7681
{
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+
7889
$this->routeAdmin->validate($this->errorElement, $route);
7990
}
8091
}

0 commit comments

Comments
 (0)