@@ -40,14 +40,14 @@ public function testPersist()
40
40
41
41
$ this ->getDm ()->persist ($ route );
42
42
$ this ->getDm ()->flush ();
43
- $ this ->assertEquals ('/testroute ' , $ route ->getPattern ());
43
+ $ this ->assertEquals ('/testroute ' , $ route ->getPath ());
44
44
45
45
$ this ->getDm ()->clear ();
46
46
47
47
$ route = $ this ->getDm ()->find (null , self ::ROUTE_ROOT .'/testroute ' );
48
48
49
49
$ this ->assertNotNull ($ route ->getContent ());
50
- $ this ->assertEquals ('/testroute ' , $ route ->getPattern ());
50
+ $ this ->assertEquals ('/testroute ' , $ route ->getPath ());
51
51
52
52
$ this ->assertEquals ('y ' , $ route ->getDefault ('x ' ));
53
53
$ defaults = $ route ->getDefaults ();
@@ -93,13 +93,13 @@ public function testPersistEmptyOptions()
93
93
public function testRootRoute ()
94
94
{
95
95
$ root = $ this ->getDm ()->find (null , self ::ROUTE_ROOT );
96
- $ this ->assertEquals ('/ ' , $ root ->getPattern ());
96
+ $ this ->assertEquals ('/ ' , $ root ->getPath ());
97
97
}
98
98
99
99
public function testSetPattern ()
100
100
{
101
101
$ root = $ this ->getDm ()->find (null , self ::ROUTE_ROOT );
102
- $ root ->setPattern ('/{test} ' );
102
+ $ root ->setPath ('/{test} ' );
103
103
$ this ->assertEquals ('{test} ' , $ root ->getVariablePattern ());
104
104
}
105
105
@@ -110,7 +110,7 @@ public function testSetPattern()
110
110
*/
111
111
public function testSetPatternInvalid (Route $ route )
112
112
{
113
- $ route ->setPattern ('/impossible ' );
113
+ $ route ->setPath ('/impossible ' );
114
114
}
115
115
116
116
/**
@@ -120,7 +120,7 @@ public function testInvalidIdPrefix()
120
120
{
121
121
$ root = $ this ->getDm ()->find (null , self ::ROUTE_ROOT );
122
122
$ root ->setPrefix ('/changed ' ); // simulate a problem with the prefix setter listener
123
- $ this ->assertEquals ('/ ' , $ root ->getPattern ());
123
+ $ this ->assertEquals ('/ ' , $ root ->getPath ());
124
124
}
125
125
126
126
/**
@@ -129,7 +129,7 @@ public function testInvalidIdPrefix()
129
129
public function testPrefixNonpersisted ()
130
130
{
131
131
$ route = new Route ();
132
- $ route ->getPattern ();
132
+ $ route ->getPath ();
133
133
}
134
134
135
135
public function testDefaultFormat ()
@@ -146,6 +146,6 @@ public function testDefaultFormat()
146
146
147
147
$ route = $ this ->getDm ()->find (null , self ::ROUTE_ROOT .'/format ' );
148
148
149
- $ this ->assertEquals ('/format.{_format} ' , $ route ->getPattern ());
149
+ $ this ->assertEquals ('/format.{_format} ' , $ route ->getPath ());
150
150
}
151
151
}
0 commit comments