public function testToolbarActionWithProfilerDisabled() { $this->
expectException(NotFoundHttpException::
class);
$this->
expectExceptionMessage('The profiler must be enabled.'
);
$urlGenerator =
$this->
createMock(UrlGeneratorInterface::
class);
$twig =
$this->
createMock(Environment::
class);
$controller =
new ProfilerController($urlGenerator, null,
$twig,
[]);
$controller->
toolbarAction(Request::
create('/_wdt/foo-token'
), null
);
} /**
* @dataProvider getEmptyTokenCases
*/
public function testToolbarActionWithEmptyToken($token) { $urlGenerator =
$this->
createMock(UrlGeneratorInterface::
class);
$twig =
$this->
createMock(Environment::
class);
$profiler =
$this->
createMock(Profiler::
class);