0
0
Fork 0
mirror of https://github.com/kevinpapst/kimai2.git synced 2025-01-10 19:47:35 +00:00
kevinpapst_kimai2/tests/Configuration/MailConfigurationTest.php
2024-02-07 23:47:25 +01:00

31 lines
793 B
PHP

<?php
/*
* This file is part of the Kimai time-tracking app.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Tests\Configuration;
use App\Configuration\MailConfiguration;
use PHPUnit\Framework\TestCase;
/**
* @covers \App\Configuration\MailConfiguration
*/
class MailConfigurationTest extends TestCase
{
public function testGetFromAddress(): void
{
$sut = new MailConfiguration('foo-bar123@example.com');
self::assertEquals('foo-bar123@example.com', $sut->getFromAddress());
}
public function testGetFromAddressWithEmptyAddressReturnsNull(): void
{
$sut = new MailConfiguration('');
self::assertNull($sut->getFromAddress());
}
}