Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Controller/Prod/MoveCollectionTest.php
2013-12-10 01:29:02 +01:00

31 lines
840 B
PHP

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