vendor and env first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Vanguard\Announcements\Tests\Unit;
|
||||
|
||||
use Tests\TestCase;
|
||||
use Vanguard\Announcements\Announcement;
|
||||
|
||||
class AnnouncementTest extends TestCase
|
||||
{
|
||||
/** @test */
|
||||
public function testParsedBody()
|
||||
{
|
||||
$announcement = new Announcement([
|
||||
'title' => 'foo',
|
||||
'body' => '# test',
|
||||
]);
|
||||
|
||||
$this->assertEquals("<h1>test</h1>\n", (string) $announcement->parsed_body);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user