Files
monica/tests/Unit/CallTest.php
T
Régis FreydandGitHub 29197090a7 Restructure where models are stored (#1476)
The idea is to clean the repository a little bit by moving models into their respective folders.
2018-06-14 20:49:12 -04:00

31 lines
622 B
PHP

<?php
namespace Tests\Unit;
use Tests\TestCase;
use App\Models\Contact\Call;
use Illuminate\Foundation\Testing\DatabaseTransactions;
class CallTest extends TestCase
{
use DatabaseTransactions;
public function test_call_note_returns_null_if_undefined()
{
$call = new Call;
$this->assertNull($call->getParsedContentAttribute());
}
public function test_call_note_returns_html_if_defined()
{
$call = new Call;
$call->content = '### test';
$this->assertEquals(
'<h3>test</h3>',
$call->getParsedContentAttribute()
);
}
}