Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/magento/framework/Mail/Test/Unit/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/framework/Mail/Test/Unit/AddressTest.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
declare(strict_types=1);

namespace Magento\Framework\Mail\Test\Unit;

use Magento\Framework\Mail\Address;
use PHPUnit\Framework\TestCase;

/**
 * test Magento\Framework\Mail\Address
 */
class AddressTest extends TestCase
{
    /**
     * @var Address
     */
    protected $message;

    /**
     * Address object with nullable email parameter passed should not throw an exception.
     *
     * @return void
     */
    public function testGetEmailEmpty()
    {
        $address = new Address(null, "Test name");
        $this->assertNull($address->getEmail());
    }
}