Files
Phraseanet/lib/unitTest/report/sqlActionTest.php
Romain Neutron 4c5b7eb658 V 3.5 RC 1
2011-12-05 00:23:28 +01:00

40 lines
835 B
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2010 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
*
*
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
class sqlActionTest extends PhraseanetPHPUnitAbstract
{
protected $action;
public function setUp()
{
$this->action = new module_report_sqlaction($this->getMock('module_report', array(), array() , '', false));
}
public function testGetAction()
{
$this->assertEquals('add', $this->action->getAction());
$this->action->setAction('unknowAction');
$this->assertEquals('add', $this->action->getAction());
}
}