mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix travis tests
This commit is contained in:
@@ -296,13 +296,21 @@ class databox_subdef
|
||||
/**
|
||||
* boolean
|
||||
*
|
||||
* @return type
|
||||
* @return bool
|
||||
*/
|
||||
public function is_downloadable()
|
||||
public function isDownloadable()
|
||||
{
|
||||
return $this->downloadable;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isOrderable()
|
||||
{
|
||||
return $this->orderable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an array of Alchemy\Phrasea\Media\Subdef\Subdef available for the current Media Type
|
||||
*
|
||||
|
||||
@@ -401,7 +401,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width:100px;line-height: 0.9rem;">{{ 'Telechargeable' | trans }}</td>
|
||||
<td style="width:300px;"><input type="checkbox" name="{{subdefgroup}}_{{subdefname}}_downloadable" {% if subdef.is_downloadable() %}checked="checked"{% endif %} value="1" /></td>
|
||||
<td style="width:300px;"><input type="checkbox" name="{{subdefgroup}}_{{subdefname}}_downloadable" {% if subdef.isDownloadable() %}checked="checked"{% endif %} value="1" /></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -83,7 +83,7 @@ class SubdefsTest extends \PhraseanetAuthenticatedWebTestCase
|
||||
$subdefs = new \databox_subdefsStructure($app->findDataboxById($this->databox_id), $app['translator']);
|
||||
$subdef = $subdefs->get_subdef("image", $name);
|
||||
/* @var $subdef \databox_subdef */
|
||||
$this->assertFalse($subdef->is_downloadable());
|
||||
$this->assertFalse($subdef->isDownloadable());
|
||||
$options = $subdef->getOptions();
|
||||
$this->assertTrue(is_array($options));
|
||||
$this->assertEquals(400, $options[Image::OPTION_SIZE]->getValue());
|
||||
|
||||
Reference in New Issue
Block a user