Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Controller/Prod/MoveCollectionTest.php
2013-01-18 17:47:25 +01:00

31 lines
858 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Controller\Prod;
class ControllerMoveCollectionTest 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());
}
}