oms-Profile/tests/Models/ContactTest.php
2022-02-19 13:57:39 +01:00

51 lines
1.2 KiB
PHP

<?php
/**
* Karaka
*
* PHP Version 8.0
*
* @package tests
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
namespace Modules\Profile\tests\Models;
use Modules\Profile\Models\Contact;
/**
* @internal
*/
final class ContactTest extends \PHPUnit\Framework\TestCase
{
private Contact $contact;
/**
* {@inheritdoc}
*/
protected function setUp() : void
{
$this->contact = new Contact();
}
/**
* @covers Modules\Profile\Models\Contact
* @group module
*/
public function testDefault() : void
{
self::assertEquals(0, $this->contact->getId());
self::assertEquals('', $this->contact->name1);
self::assertEquals('', $this->contact->name2);
self::assertEquals('', $this->contact->name3);
self::assertEquals('', $this->contact->description);
self::assertEquals('', $this->contact->company);
self::assertEquals('', $this->contact->job);
self::assertNull($this->contact->birthday);
self::assertInstanceOf('\Modules\Media\Models\Media', $this->contact->image);
}
}