mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge pull request #984 from romainneutron/h264
[Ready][3.8] Add H264 pseudo stream configuration
This commit is contained in:
@@ -2226,7 +2226,7 @@ abstract class ApiAbstract extends \PhraseanetWebTestCaseAbstract
|
||||
|
||||
$expected = $subdef->get_permalink()->get_last_modified();
|
||||
$found = \DateTime::createFromFormat(DATE_ATOM, $permalink['updated_on']);
|
||||
|
||||
|
||||
$this->assertLessThanOrEqual(1, $expected->diff($found)->format('U'));
|
||||
$this->assertInternalType(\PHPUnit_Framework_Constraint_IsType::TYPE_STRING, $permalink['updated_on']);
|
||||
$this->assertDateAtom($permalink['updated_on']);
|
||||
@@ -2244,7 +2244,7 @@ abstract class ApiAbstract extends \PhraseanetWebTestCaseAbstract
|
||||
|
||||
$this->assertArrayHasKey("download_url", $permalink);
|
||||
$this->assertInternalType(\PHPUnit_Framework_Constraint_IsType::TYPE_STRING, $permalink['download_url']);
|
||||
$this->assertEquals($subdef->get_permalink()->get_url() . '&download', $permalink['download_url']);
|
||||
$this->assertEquals((string) $subdef->get_permalink()->get_url() . '&download=1', $permalink['download_url']);
|
||||
$this->checkUrlCode200($permalink['download_url']);
|
||||
$this->assertPermalinkHeaders($permalink['download_url'], $subdef, "download_url");
|
||||
}
|
||||
|
Reference in New Issue
Block a user