Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Controller/Prod/MoveCollectionTest.php
Romain Neutron d7f7e1c92c Fix CS
2014-01-14 12:04:38 +01:00

31 lines
830 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Controller\Prod;
class MoveCollectionTest extends \PhraseanetAuthenticatedWebTestCase
{
protected $client;
/**
* Default route test
*/
public function testRouteSlash()
{
self::$DI['client']->request('POST', '/prod/records/movecollection/', ['lst' => self::$DI['record_1']->get_serialize_key()]);
$response = self::$DI['client']->getResponse();
$this->assertTrue($response->isOk());
}
public function testApply()
{
self::$DI['client']->request('POST', '/prod/records/movecollection/apply/', ['lst' => self::$DI['record_1']->get_serialize_key(), 'base_id' => self::$DI['collection']->get_base_id()]);
$response = self::$DI['client']->getResponse();
$this->assertTrue($response->isOk());
}
}