Skip to content

Commit

Permalink
Use symfony requeststack in test (#4120)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-m committed Feb 13, 2024
1 parent d684089 commit a0ff636
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Drupal\common\StreamWrapper\DkanStreamWrapper;
use Drupal\Core\File\FileSystem;
use Drupal\Core\GeneratedUrl;
use Drupal\Core\Http\RequestStack;
use Symfony\Component\HttpFoundation\RequestStack;
use Drupal\Core\Path\PathValidator;
use Drupal\Core\Render\MetadataBubblingUrlGenerator;
use Drupal\Core\StreamWrapper\StreamWrapperManager;
Expand Down Expand Up @@ -100,7 +100,7 @@ public function testValidateUri() {
}

/**
*
*
*/
public function testExtractItemId() {
$generator = $this->getGenerator();
Expand All @@ -121,7 +121,7 @@ private function getGenerator() {
->index(0)
)
->add(PathValidator::class, 'getPathAttributes', ['_route' => "dkan.common.api.version", '_raw_variables' => new ParameterBag()])
->add(UnroutedUrlAssembler::class, 'assemble', "/api/1/metastore/schemas/data-dictionary/items/111")
->add(UnroutedUrlAssembler::class, 'assemble', "/api/1/metastore/schemas/data-dictionary/items/111")
->add(MetadataBubblingUrlGenerator::class, 'generateFromRoute', GeneratedUrl::class)
->add(GeneratedUrl::class, 'getGeneratedUrl', 'http://web/api/1')
->getMock();
Expand Down

0 comments on commit a0ff636

Please sign in to comment.