@@ -25,7 +25,7 @@ class HelpControllerTest extends ControllerBaseTest
|
||||
$client = $this->getClientForAuthenticatedUser();
|
||||
$this->request($client, '/help/');
|
||||
$this->assertTrue($client->getResponse()->isSuccessful());
|
||||
$this->assertContains('<h1>Kimai documentation</h1>', $client->getResponse()->getContent());
|
||||
$this->assertContains('<h1 id="kimai-documentation">Kimai documentation</h1>', $client->getResponse()->getContent());
|
||||
$this->assertContains('<a href="configurations">', $client->getResponse()->getContent());
|
||||
$this->assertContains('<a href="developers">', $client->getResponse()->getContent());
|
||||
$this->assertContains('<a href="users">', $client->getResponse()->getContent());
|
||||
|
||||
@@ -31,7 +31,7 @@ class MarkdownExtensionTest extends TestCase
|
||||
{
|
||||
$sut = new MarkdownExtension(new Markdown());
|
||||
$this->assertEquals('<p><em>test</em></p>', $sut->markdownToHtml('*test*'));
|
||||
$this->assertEquals('<h1>foobar</h1>', $sut->markdownToHtml('# foobar'));
|
||||
$this->assertEquals('<h1 id="foobar">foobar</h1>', $sut->markdownToHtml('# foobar'));
|
||||
}
|
||||
|
||||
public function testTimesheetContent()
|
||||
|
||||
@@ -21,6 +21,6 @@ class MarkdownTest extends TestCase
|
||||
{
|
||||
$sut = new Markdown();
|
||||
$this->assertEquals('<p><em>test</em></p>', $sut->toHtml('*test*'));
|
||||
$this->assertEquals('<h1>foobar</h1>', $sut->toHtml('# foobar'));
|
||||
$this->assertEquals('<h1 id="foobar">foobar</h1>', $sut->toHtml('# foobar'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user