Files
Phraseanet/tests/report/sqlActionTest.php
Romain Neutron 4cf5adcd1e Update Unit tests
2012-05-12 02:22:19 +02:00

26 lines
621 B
PHP

<?php
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
class sqlActionTest extends PhraseanetPHPUnitAbstract
{
protected $action;
protected $mock;
public function setUp()
{
parent::setUp();
$this->mock = $this->getMock('module_report', array(), array(), '', false);
$this->action = new module_report_sqlaction($this->mock);
}
public function testGetAction()
{
$this->assertEquals('add', $this->action->getAction());
$this->action->setAction('unknowAction');
$this->assertEquals('add', $this->action->getAction());
}
}