Skip to content

Commit ca07d99

Browse files
committed
[2.2] pattern is renamed to path
1 parent fe44f1b commit ca07d99

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/Functional/Doctrine/Phpcr/RouteTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ public function testPersist()
4040

4141
$this->getDm()->persist($route);
4242
$this->getDm()->flush();
43-
$this->assertEquals('/testroute', $route->getPattern());
43+
$this->assertEquals('/testroute', $route->getPath());
4444

4545
$this->getDm()->clear();
4646

4747
$route = $this->getDm()->find(null, self::ROUTE_ROOT.'/testroute');
4848

4949
$this->assertNotNull($route->getContent());
50-
$this->assertEquals('/testroute', $route->getPattern());
50+
$this->assertEquals('/testroute', $route->getPath());
5151

5252
$this->assertEquals('y', $route->getDefault('x'));
5353
$defaults = $route->getDefaults();
@@ -93,13 +93,13 @@ public function testPersistEmptyOptions()
9393
public function testRootRoute()
9494
{
9595
$root = $this->getDm()->find(null, self::ROUTE_ROOT);
96-
$this->assertEquals('/', $root->getPattern());
96+
$this->assertEquals('/', $root->getPath());
9797
}
9898

9999
public function testSetPattern()
100100
{
101101
$root = $this->getDm()->find(null, self::ROUTE_ROOT);
102-
$root->setPattern('/{test}');
102+
$root->setPath('/{test}');
103103
$this->assertEquals('{test}', $root->getVariablePattern());
104104
}
105105

@@ -110,7 +110,7 @@ public function testSetPattern()
110110
*/
111111
public function testSetPatternInvalid(Route $route)
112112
{
113-
$route->setPattern('/impossible');
113+
$route->setPath('/impossible');
114114
}
115115

116116
/**
@@ -120,7 +120,7 @@ public function testInvalidIdPrefix()
120120
{
121121
$root = $this->getDm()->find(null, self::ROUTE_ROOT);
122122
$root->setPrefix('/changed'); // simulate a problem with the prefix setter listener
123-
$this->assertEquals('/', $root->getPattern());
123+
$this->assertEquals('/', $root->getPath());
124124
}
125125

126126
/**
@@ -129,7 +129,7 @@ public function testInvalidIdPrefix()
129129
public function testPrefixNonpersisted()
130130
{
131131
$route = new Route();
132-
$route->getPattern();
132+
$route->getPath();
133133
}
134134

135135
public function testDefaultFormat()
@@ -146,6 +146,6 @@ public function testDefaultFormat()
146146

147147
$route = $this->getDm()->find(null, self::ROUTE_ROOT.'/format');
148148

149-
$this->assertEquals('/format.{_format}', $route->getPattern());
149+
$this->assertEquals('/format.{_format}', $route->getPath());
150150
}
151151
}

0 commit comments

Comments
 (0)