Skip to content

Commit e5f19c2

Browse files
committed
#718 - Failing test for expose option
1 parent 6ec796c commit e5f19c2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
users:
2+
type: rest
3+
resource: FOS\RestBundle\Tests\Fixtures\Controller\UsersController
4+
options:
5+
expose: true

Tests/Routing/Loader/RestYamlCollectionLoaderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ public function testNamedPrefixedReportsFixtureHasNoDuplicates()
9292
$this->assertEquals(count($names), count(array_unique($names)));
9393
}
9494

95+
public function testForwardOptions()
96+
{
97+
$collection = $this->loadFromYamlCollectionFixture('routes_with_options.yml');
98+
99+
foreach ($collection as $route) {
100+
$this->assertTrue($route->getOption('expose'));
101+
}
102+
}
103+
95104
public function testManualRoutes()
96105
{
97106
$collection = $this->loadFromYamlCollectionFixture('routes.yml');

0 commit comments

Comments
 (0)