mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
24 lines
585 B
PHP
24 lines
585 B
PHP
<?php
|
|
|
|
class sqlActionTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
|
{
|
|
protected $action;
|
|
protected $mock;
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->mock = $this->getMock('module_report', array(), array(), '', false);
|
|
|
|
$this->action = new module_report_sqlaction(self::$DI['app'], $this->mock);
|
|
}
|
|
|
|
public function testGetAction()
|
|
{
|
|
$this->assertEquals('add', $this->action->getAction());
|
|
$this->action->setAction('unknowAction');
|
|
$this->assertEquals('add', $this->action->getAction());
|
|
}
|
|
}
|