Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Sep 2, 2022
1 parent c318867 commit b15e5b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tests/Broadcasting/PusherBroadcasterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ public function testUserAuthenticationForPusher()
protected function getMockRequestWithUserForChannel($channel)
{
$request = m::mock(Request::class);
$request->channel_name = $channel;
$request->socket_id = 'abcd.1234';
$request->shouldReceive('all')->andReturn(['channel_name' => $channel, 'socket_id' => 'abcd.1234']);

$request->shouldReceive('input')
->with('callback', false)
Expand All @@ -204,7 +203,7 @@ protected function getMockRequestWithUserForChannel($channel)
protected function getMockRequestWithoutUserForChannel($channel)
{
$request = m::mock(Request::class);
$request->channel_name = $channel;
$request->shouldReceive('all')->andReturn(['channel_name' => $channel]);

$request->shouldReceive('user')
->andReturn(null);
Expand Down
5 changes: 3 additions & 2 deletions tests/Broadcasting/RedisBroadcasterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ protected function createConfig()
protected function getMockRequestWithUserForChannel($channel)
{
$request = m::mock(Request::class);
$request->channel_name = $channel;
$request->shouldReceive('all')->andReturn(['channel_name' => $channel]);
$request->shouldReceive('all')->andReturn(['channel_name' => $channel]);

$user = m::mock('User');
$user->shouldReceive('getAuthIdentifierForBroadcasting')
Expand All @@ -188,7 +189,7 @@ protected function getMockRequestWithUserForChannel($channel)
protected function getMockRequestWithoutUserForChannel($channel)
{
$request = m::mock(Request::class);
$request->channel_name = $channel;
$request->shouldReceive('all')->andReturn(['channel_name' => $channel]);

$request->shouldReceive('user')
->andReturn(null);
Expand Down
4 changes: 4 additions & 0 deletions tests/Foundation/Bootstrap/HandleExceptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

class HandleExceptionsTest extends TestCase
{
protected $app;
protected $config;
protected $handleExceptions;

protected function setUp(): void
{
$this->app = m::mock(Application::setInstance(new Application));
Expand Down

0 comments on commit b15e5b6

Please sign in to comment.