Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 28cbc5d

Browse filesBrowse 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
Copy full SHA for 28cbc5d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎mercure.rst

Copy file name to clipboardExpand all lines: mercure.rst
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.