oms-Profile/tests/Models/ContactTest.php
Dennis Eichhorn 80176a5f3e fix tests
2024-03-20 03:00:24 +00:00

51 lines
1.2 KiB
PHP
Executable File

<?php
/**
* Jingga
*
* PHP Version 8.1
*
* @package tests
* @copyright 2013 Dennis Eichhorn
* @license OMS License 2.0
* @version 1.0.0
* @link https://jingga.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->id);
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);
}
}