refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit\Services\DavClient\Utils\Model;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||||
use App\Services\DavClient\Utils\Model\ContactUpdateDto;
|
||||
|
||||
class ContactUpdateDtoTest extends TestCase
|
||||
{
|
||||
use DatabaseTransactions;
|
||||
|
||||
/** @test */
|
||||
public function it_create_dto_string()
|
||||
{
|
||||
$dto = new ContactUpdateDto('uri', 'etag', 'card');
|
||||
$this->assertEquals('uri', $dto->uri);
|
||||
$this->assertEquals('etag', $dto->etag);
|
||||
$this->assertEquals('card', $dto->card);
|
||||
}
|
||||
|
||||
/** @test */
|
||||
public function it_create_dto_resource()
|
||||
{
|
||||
$resource = fopen(__DIR__.'/stub.vcf', 'r');
|
||||
$dto = new ContactUpdateDto('uri', 'etag', $resource);
|
||||
$this->assertEquals('uri', $dto->uri);
|
||||
$this->assertEquals('etag', $dto->etag);
|
||||
$this->assertEquals('card', $dto->card);
|
||||
}
|
||||
}
|
||||
1
tests/Unit/Services/DavClient/Utils/Model/stub.vcf
Normal file
1
tests/Unit/Services/DavClient/Utils/Model/stub.vcf
Normal file
@@ -0,0 +1 @@
|
||||
card
|
||||
Reference in New Issue
Block a user