Mercurial > hg > isophonics-drupal-site
comparison core/modules/rest/tests/src/Unit/CollectRoutesTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
82 $container->set('authentication_collector', $authentication_collector); | 82 $container->set('authentication_collector', $authentication_collector); |
83 $authentication_collector->expects($this->any()) | 83 $authentication_collector->expects($this->any()) |
84 ->method('getSortedProviders') | 84 ->method('getSortedProviders') |
85 ->will($this->returnValue(['basic_auth' => 'data', 'cookie' => 'data'])); | 85 ->will($this->returnValue(['basic_auth' => 'data', 'cookie' => 'data'])); |
86 | 86 |
87 $container->setParameter('serializer.format_providers', ['json']); | |
88 | |
87 \Drupal::setContainer($container); | 89 \Drupal::setContainer($container); |
88 | 90 |
89 $this->restExport = RestExport::create($container, [], "test_routes", []); | 91 $this->restExport = RestExport::create($container, [], "test_routes", []); |
90 $this->restExport->view = $view_executable; | 92 $this->restExport->view = $view_executable; |
91 | 93 |