Skip to content

Commit dff584d

Browse files
nlisgoGiorgio Sironi
authored andcommitted
Ensure all tests run by adding version details to search path yield statements in SmokeTest
elifesciences/issues#9145
1 parent ab3ea27 commit dff584d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/SmokeTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -524,32 +524,32 @@ public function requestProvider() : Traversable
524524
$warning = 1 === $version ? [
525525
'application/vnd.elife.search+json; version=1' => '299 elifesciences.org "Deprecation: Support for version 1 will be removed"',
526526
] : [];
527-
yield $path = '/search?type[]=reviewed-preprint' => [
527+
yield ($path = '/search?type[]=reviewed-preprint')." (version: {$version})" => [
528528
$this->createRequest($path, 'application/vnd.elife.search+json; version='.$version),
529529
'application/vnd.elife.search+json; version='.$version,
530530
200,
531531
$warning,
532532
1 === $version ? 0 : null,
533533
];
534-
yield $path = '/search' => [
534+
yield ($path = '/search')." (version: {$version})" => [
535535
$this->createRequest($path, 'application/vnd.elife.search+json; version='.$version),
536536
'application/vnd.elife.search+json; version='.$version,
537537
200,
538538
$warning,
539539
];
540-
yield $path = '/search?for=cell' => [
540+
yield ($path = '/search?for=cell')." (version: {$version})" => [
541541
$this->createRequest($path, 'application/vnd.elife.search+json; version='.$version),
542542
'application/vnd.elife.search+json; version='.$version,
543543
200,
544544
$warning,
545545
];
546-
yield $path = '/search?subject[]=cell-biology' => [
546+
yield ($path = '/search?subject[]=cell-biology')." (version: {$version})" => [
547547
$this->createRequest($path, 'application/vnd.elife.search+json; version='.$version),
548548
'application/vnd.elife.search+json; version='.$version,
549549
200,
550550
$warning,
551551
];
552-
yield $path = '/search?start-date=2017-01-01&end-date=2017-01-01' => [
552+
yield ($path = '/search?start-date=2017-01-01&end-date=2017-01-01')." (version: {$version})" => [
553553
$this->createRequest($path, 'application/vnd.elife.search+json; version='.$version),
554554
'application/vnd.elife.search+json; version='.$version,
555555
200,

0 commit comments

Comments
 (0)