Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Sep 6, 2024
1 parent 9583375 commit a6bf2f8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
3 changes: 2 additions & 1 deletion tests/Integration/AuthTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Kreait\Firebase\Exception\Auth\RevokedSessionCookie;
use Kreait\Firebase\Exception\Auth\UserNotFound;
use Kreait\Firebase\Tests\IntegrationTestCase;
use Kreait\Firebase\Util;
use PHPUnit\Framework\Attributes\Test;

use function assert;
Expand Down Expand Up @@ -208,7 +209,7 @@ public function getLocalizedEmailActionLink(): void

$link = $this->auth->getEmailVerificationLink($user->email, null, 'fr');

if (self::authIsEmulated()) {
if (Util::authEmulatorHost() !== null) {
$this->assertStringNotContainsString('lang=fr', $link);
} else {
$this->assertStringContainsString('lang=fr', $link);
Expand Down
10 changes: 0 additions & 10 deletions tests/IntegrationTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,6 @@ protected static function randomEmail(string $suffix = ''): string
return self::randomString($suffix.'@example.com');
}

protected static function authIsEmulated(): bool
{
return Util::authEmulatorHost() !== null;
}

protected static function databaseIsEmulated(): bool
{
return Util::rtdbEmulatorHost() !== null;
}

/**
* @return non-empty-string|null
*/
Expand Down
6 changes: 0 additions & 6 deletions tests/Unit/Messaging/NotificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Kreait\Firebase\Tests\Unit\Messaging;

use Iterator;
use Kreait\Firebase\Messaging\Notification;
use Kreait\Firebase\Tests\UnitTestCase;
use PHPUnit\Framework\Attributes\Test;
Expand Down Expand Up @@ -52,9 +51,4 @@ public function createFromValidArray(): void
$this->assertSame($imageUrl, $notification->imageUrl());
$this->assertEqualsCanonicalizing($array, $notification->jsonSerialize());
}

public function invalidDataProvider(): Iterator
{
yield 'empty_title_and_body' => [['title' => null, 'body' => null]];
}
}

0 comments on commit a6bf2f8

Please sign in to comment.