Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Controller/Prod/MoveCollectionTest.php
Nicolas Le Goff e5b8817c46 PHP CS fix
2014-05-30 15:22:00 +02:00

31 lines
848 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Controller\Prod;
class MoveCollectionTest extends \PhraseanetWebTestCaseAuthenticatedAbstract
{
protected $client;
/**
* Default route test
*/
public function testRouteSlash()
{
self::$DI['client']->request('POST', '/prod/records/movecollection/', array('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/', array('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());
}
}