Commit f10043eb authored by Igor Wiedler's avatar Igor Wiedler

rename flushControllerCollection to Application::flush()

parent ce634a46
......@@ -226,9 +226,9 @@ class Application extends HttpKernel implements EventSubscriberInterface
}
/**
* Flush the controller collection
* Flush the controller collection.
*/
public function flushControllerCollection()
public function flush()
{
$this->controllerCollection->flush();
}
......
......@@ -94,7 +94,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
$routeCollection = $application->getRouteCollection();
$this->assertInstanceOf('Symfony\Component\Routing\RouteCollection', $routeCollection);
$this->assertEquals(0, count($routeCollection->all()));
$application->flushControllerCollection();
$application->flush();
$this->assertEquals(2, count($routeCollection->all()));
}
}
......@@ -34,7 +34,7 @@ class FunctionalTest extends \PHPUnit_Framework_TestCase
})
->setRouteName('foo_abc');
$application->flushControllerCollection();
$application->flush();
$routeCollection = $application->getRouteCollection();
$this->assertInstanceOf('Symfony\Component\Routing\Route', $routeCollection->get('homepage'));
$this->assertInstanceOf('Symfony\Component\Routing\Route', $routeCollection->get('foo_abc'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment