mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-02 11:36:08 -04:00
expose types JSON-LD incl. configured expiration dates, resolves #1045
This commit is contained in:
parent
e84a8694e4
commit
bf7d2f05b6
2 changed files with 31 additions and 4 deletions
|
@ -252,6 +252,23 @@ class JsonApiTest extends PHPUnit_Framework_TestCase
|
|||
), $content, 'outputs data correctly');
|
||||
}
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testJsonLdTypes()
|
||||
{
|
||||
$_GET['jsonld'] = 'types';
|
||||
ob_start();
|
||||
new Controller;
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$this->assertEquals(str_replace(
|
||||
'?jsonld=',
|
||||
'/?jsonld=',
|
||||
file_get_contents(PUBLIC_PATH . '/js/types.jsonld')
|
||||
), $content, 'outputs data correctly');
|
||||
}
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue