8000 Remove wrong parameter in MockHub · symfony/symfony-docs@28cbc5d · GitHub
[go: up one dir, main page]

Skip to content

Commit 28cbc5d

Browse files
elliotbruneeljaviereguiluz
authored andcommitted
Remove wrong parameter in MockHub
There is no parameter in `MockHub` to specify the hub name (`default`) `MockHub` constructor : https://github.com/symfony/mercure/blob/main/src/MockHub.php#L30-L35 ```php /** * @param (callable(Update): string) $publisher */ public function __construct( string $url, TokenProviderInterface $jwtProvider, callable $publisher, TokenFactoryInterface $jwtFactory = null, string $publicUrl = null ) ```
1 parent d3974e2 commit 28cbc5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mercure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ You can instead make use of the `MockHub`::
576576
{
577577
public function testPublishing()
578578
{
579-
$hub = new MockHub('default', 'https://internal/.well-known/mercure', new StaticTokenProvider('foo'), function(Update $update): string {
579+
$hub = new MockHub('https://internal/.well-known/mercure', new StaticTokenProvider('foo'), function(Update $update): string {
580580
// $this->assertTrue($update->isPrivate());
581581

582582
return 'id';

0 commit comments

Comments
 (0)
0