Skip to content

Commit

Permalink
Update unit tests to be compatible with newer versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin de Keijzer committed Mar 2, 2022
1 parent fd439c9 commit 54dd916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Tests/Broadcaster/SchedulerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ public function testStoppingCausesAnError(): void
->willReturn($eventsRepository);

$this->logger->expects(self::atLeastOnce())
->method('error')
->willReturn(null);
->method('error');

$scheduler = $this->getScheduler();
$scheduler->applySchedule();
Expand Down Expand Up @@ -364,8 +363,7 @@ public function testStartPlannedBroadcastThrowsException(): void
->willThrowException(new \Exception('Something went wrong'));

$this->logger->expects(self::atLeastOnce())
->method('error')
->willReturn(null);
->method('error');

$scheduler = $this->getScheduler();
$scheduler->applySchedule();
Expand Down
3 changes: 1 addition & 2 deletions Tests/LiveBroadcastBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public function testBuild(): void
{
$container = $this->createMock(ContainerBuilder::class);
$container->expects(self::atLeastOnce())
->method('addCompilerPass')
->willReturn(true);
->method('addCompilerPass');

$bundle = new LiveBroadcastBundle();

Expand Down

0 comments on commit 54dd916

Please sign in to comment.