Browse Source

Return array not string.

pull/960/head
Rosie Le Faive 1 year ago
parent
commit
a77bd2d949
  1. 2
      tests/modules/integer_weight_test_views/integer_weight_test_views.info.yml
  2. 4
      tests/src/Kernel/FedoraAdapterTest.php

2
tests/modules/integer_weight_test_views/integer_weight_test_views.info.yml

@ -2,7 +2,7 @@ name: 'Integer weight test views'
type: module type: module
description: 'Provides default views for integer weight views tests.' description: 'Provides default views for integer weight views tests.'
package: Testing package: Testing
core_version_requirement: ^9 || ^10 core_version_requirement: ^8 || ^9 || ^10
dependencies: dependencies:
- drupal:node - drupal:node
- drupal:views - drupal:views

4
tests/src/Kernel/FedoraAdapterTest.php

@ -235,7 +235,7 @@ class FedoraAdapterTest extends IslandoraKernelTestBase {
$head_prophecy = $this->prophesize(Response::class); $head_prophecy = $this->prophesize(Response::class);
$head_prophecy->getStatusCode()->willReturn(410); $head_prophecy->getStatusCode()->willReturn(410);
$head_prophecy->getHeader('Link') $head_prophecy->getHeader('Link')
->willReturn('<some-path-to-a-tombstone>; rel="hasTombstone"'); ->willReturn(['<some-path-to-a-tombstone>; rel="hasTombstone"']);
$tombstone_prophecy = $this->prophesize(Response::class); $tombstone_prophecy = $this->prophesize(Response::class);
$tombstone_prophecy->getStatusCode()->willReturn(204); $tombstone_prophecy->getStatusCode()->willReturn(204);
@ -263,7 +263,7 @@ class FedoraAdapterTest extends IslandoraKernelTestBase {
$head_prophecy = $this->prophesize(Response::class); $head_prophecy = $this->prophesize(Response::class);
$head_prophecy->getStatusCode()->willReturn(410); $head_prophecy->getStatusCode()->willReturn(410);
$head_prophecy->getHeader('Link') $head_prophecy->getHeader('Link')
->willReturn('<some-path-to-a-tombstone>; rel="hasTombstone"'); ->willReturn(['<some-path-to-a-tombstone>; rel="hasTombstone"']);
$tombstone_prophecy = $this->prophesize(Response::class); $tombstone_prophecy = $this->prophesize(Response::class);
$tombstone_prophecy->getStatusCode()->willReturn(500); $tombstone_prophecy->getStatusCode()->willReturn(500);

Loading…
Cancel
Save