<?php
/**
 * YAWIK
 *
 * @filesource
 * @license    MIT
 * @copyright https://yawik.org/COPYRIGHT.php
 */

/** */
namespace ApplicationsTest\Entity;

use PHPUnit\Framework\TestCase;

use Auth\Entity\Info;
use Applications\Entity\Contact;

/**
 * Tests for User
 *
 * @covers \Applications\Entity\Contact
 *
 * @author Carsten Bleek <bleek@cross-solution.de>
 * @group  Applications
 * @group  Applications.Entity
 */
class ContactTest extends TestCase
{
    /**
     * The "Class under Test"
     *
     * @var Contact
     */
    private $target;

    protected function setUp(): void
    {
        $info = new Info();
        $this->target = new Contact($info);
    }

    /**
     * @testdox Extends \Core\Entity\AbstractEntity and implements \Auth\Entity\UserInterface
     * @covers \Applications\Entity\Contact::__construct
     */
    public function testExtendsAbstractEntityAndInfo()
    {
        $this->assertInstanceOf('\Core\Entity\AbstractEntity', $this->target);
        $this->assertInstanceOf('\Auth\Entity\Info', $this->target);
    }
}
