Markdown support for notes and log calls (#544)

Close #506 
Fix #545
This commit is contained in:
Régis Freyd
2017-08-15 22:22:21 -04:00
committed by GitHub
parent 7069168b56
commit 503b0f0c2d
34 changed files with 15601 additions and 127 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace Tests\Unit;
use App\Call;
use Tests\TestCase;
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()
);
}
}