Skip to content

Commit f7dd327

Browse files
committed
Fixing deprecation test failures
1 parent 3b36ea4 commit f7dd327

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Routing/RouteCollectionBuilderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function testFlushSetsRouteNames()
135135
$collectionBuilder->add('/admin', 'AppBundle:Admin:dashboard', 'admin_dashboard');
136136
// add an unnamed route
137137
$collectionBuilder->add('/blogs', 'AppBundle:Blog:list')
138-
->setMethods('GET');
138+
->setMethods(array('GET'));
139139

140140
// integer route names are allowed - they don't confuse things
141141
$collectionBuilder->add('/products', 'AppBundle:Product:list', 100);
@@ -165,8 +165,8 @@ public function testFlushSetsDetailsOnChildrenRoutes()
165165
->setOption('fooBar', true)
166166
->setHost('example.com')
167167
->setCondition('request.isSecure()')
168-
->setSchemes('https')
169-
->setMethods('POST');
168+
->setSchemes(array('https'))
169+
->setMethods(array('POST'));
170170

171171
// a simple route, nothing added to it
172172
$routes->add('/blogs/{id}', 'editAction', 'blog_edit');
@@ -183,7 +183,7 @@ public function testFlushSetsDetailsOnChildrenRoutes()
183183
->setDefault('_locale', 'fr')
184184
->setRequirement('_locale', 'fr|en')
185185
->setOption('niceRoute', true)
186-
->setSchemes('http')
186+
->setSchemes(array('http'))
187187
->setMethods(array('GET', 'POST'));
188188

189189
$collection = $routes->build();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy