mirror of
https://github.com/silverstripe/silverstripe-docsviewer
synced 2024-10-22 09:05:56 +00:00
Add tests for getLanguage()
This commit is contained in:
parent
086ddf2577
commit
be9eef83b4
@ -168,7 +168,15 @@ class DocumentationViewerTest extends FunctionalTest {
|
||||
}
|
||||
|
||||
|
||||
public function testGetLanguage() {
|
||||
$v = new DocumentationViewer();
|
||||
$response = $v->handleRequest(new SS_HTTPRequest('GET', 'en/doc_test/2.3/'), DataModel::inst());
|
||||
|
||||
$this->assertEquals('en', $v->getLanguage());
|
||||
|
||||
$response = $v->handleRequest(new SS_HTTPRequest('GET', 'en/doc_test/2.3/subfolder/subsubfolder/subsubpage/'), DataModel::inst());
|
||||
$this->assertEquals('en', $v->getLanguage());
|
||||
}
|
||||
|
||||
|
||||
public function testAccessingAll() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user