mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
26 lines
621 B
PHP
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());
|
|
}
|
|
}
|