Files
Phraseanet/tests/Alchemy/Tests/Phrasea/Controller/Prod/MoveCollectionTest.php
2015-06-15 19:30:51 +02:00

37 lines
914 B
PHP

<?php
namespace Alchemy\Tests\Phrasea\Controller\Prod;
/**
* @group functional
* @group legacy
* @group authenticated
* @group web
*/
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());
}
}