8000 Merge branch '4.4' into 5.0 · symfony/symfony@c8c6c92 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8c6c92

Browse files
Merge branch '4.4' into 5.0
* 4.4: Add link to messenger documentation in its README [HttpKernel] restore compat with clock mocking
2 parents 3ccb3bf + c6a5d3d commit c8c6c92

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/Symfony/Component/HttpKernel/Tests/EventListener/DisallowRobotsIndexingListenerTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ class DisallowRobotsIndexingListenerTest extends TestCase
2424
/**
2525
* @dataProvider provideResponses
2626
*/
27-
public function testInvoke(?string $expected, Response $response): void
27+
public function testInvoke(?string $expected, array $responseArgs)
2828
{
29+
$response = new Response(...$responseArgs);
2930
$listener = new DisallowRobotsIndexingListener();
3031

3132
$event = new ResponseEvent($this->createMock(HttpKernelInterface::class), $this->createMock(Request::class), KernelInterface::MASTER_REQUEST, $response);
@@ -37,11 +38,11 @@ public function testInvoke(?string $expected, Response $response): void
3738

3839
public function provideResponses(): iterable
3940
{
40-
yield 'No header' => ['noindex', new Response()];
41+
yield 'No header' => ['noindex', []];
4142

4243
yield 'Header already set' => [
4344
'something else',
44-
new Response('', 204, ['X-Robots-Tag' => 'something else']),
45+
['', 204, ['X-Robots-Tag' => 'something else']],
4546
];
4647
}
4748
}

src/Symfony/Component/Messenger/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ message queues.
77
Resources
88
---------
99

10+
* [Documentation](https://symfony.com/doc/current/components/messenger.html)
1011
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
1112
* [Report issues](https://github.com/symfony/symfony/issues) and
1213
[send Pull Requests](https://github.com/symfony/symfony/pulls)

0 commit comments

Comments
 (0)
0