mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 03:23:19 +00:00
31 lines
792 B
PHP
31 lines
792 B
PHP
<?php
|
|
|
|
/**
|
|
* @group functional
|
|
* @group legacy
|
|
*/
|
|
class report_sqlActionTest extends \report_abstractReportTestCase
|
|
{
|
|
protected $action;
|
|
protected $mock;
|
|
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->mock = $this->getMock('module_report', [], [], '', false);
|
|
$this->mock->expects($this->any())
|
|
->method('getSbasId')
|
|
->will($this->returnValue(self::$DI['collection']->get_databox()->get_sbas_id()));
|
|
|
|
$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());
|
|
}
|
|
}
|