mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
update subdefsTest
This commit is contained in:
@@ -50,7 +50,7 @@ class SubdefsTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
{
|
{
|
||||||
$subdefs = $this->getApplication()->findDataboxById($this->databox_id)->get_subdef_structure();
|
$subdefs = $this->getApplication()->findDataboxById($this->databox_id)->get_subdef_structure();
|
||||||
$name = $this->getSubdefName();
|
$name = $this->getSubdefName();
|
||||||
$path = $this->findDataboxById($this->databox_id)->getSubdefStorage();
|
$path = $this->getApplication()->findDataboxById($this->databox_id)->getSubdefStorage();
|
||||||
|
|
||||||
$subdefs->add_subdef("image", $name, "thumbnail", "image", "1280px JPG (preview Phraseanet)", $path);
|
$subdefs->add_subdef("image", $name, "thumbnail", "image", "1280px JPG (preview Phraseanet)", $path);
|
||||||
self::$DI['client']->request("POST", "/admin/subdefs/" . $this->databox_id . "/", ['delete_subdef' => 'image_' . $name]);
|
self::$DI['client']->request("POST", "/admin/subdefs/" . $this->databox_id . "/", ['delete_subdef' => 'image_' . $name]);
|
||||||
@@ -65,7 +65,7 @@ class SubdefsTest extends \PhraseanetAuthenticatedWebTestCase
|
|||||||
{
|
{
|
||||||
$subdefs = $this->getApplication()->findDataboxById($this->databox_id)->get_subdef_structure();
|
$subdefs = $this->getApplication()->findDataboxById($this->databox_id)->get_subdef_structure();
|
||||||
$name = $this->getSubdefName();
|
$name = $this->getSubdefName();
|
||||||
$path = $this->findDataboxById($this->databox_id)->getSubdefStorage();
|
$path = $this->getApplication()->findDataboxById($this->databox_id)->getSubdefStorage();
|
||||||
|
|
||||||
$subdefs->add_subdef("image", $name, "thumbnail", "image", "1280px JPG (preview Phraseanet)", $path);
|
$subdefs->add_subdef("image", $name, "thumbnail", "image", "1280px JPG (preview Phraseanet)", $path);
|
||||||
self::$DI['client']->request("POST", "/admin/subdefs/" . $this->databox_id . "/"
|
self::$DI['client']->request("POST", "/admin/subdefs/" . $this->databox_id . "/"
|
||||||
|
|||||||
Reference in New Issue
Block a user