mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix Tests
This commit is contained in:
@@ -54,7 +54,7 @@ class FilenameTest extends \PhraseanetPHPUnitAbstract
|
||||
*/
|
||||
public function testCheckNoFile()
|
||||
{
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getOriginalName'), array($this->media, self::$DI['collection']));
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getOriginalName'), array(self::$DI['app'], $this->media, self::$DI['collection']));
|
||||
|
||||
$mock
|
||||
->expects($this->once())
|
||||
@@ -77,7 +77,7 @@ class FilenameTest extends \PhraseanetPHPUnitAbstract
|
||||
*/
|
||||
public function testCheckSensitive()
|
||||
{
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getOriginalName'), array($this->media, self::$DI['collection']));
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getOriginalName'), array(self::$DI['app'], $this->media, self::$DI['collection']));
|
||||
|
||||
$mock
|
||||
->expects($this->any())
|
||||
|
@@ -43,7 +43,7 @@ class Sha256Test extends \PhraseanetPHPUnitAbstract
|
||||
|
||||
self::$DI['app']['border-manager']->process($session, File::buildFromPathfile($this->media->getFile()->getPathname(), self::$DI['collection'], self::$DI['app']), null, \Alchemy\Phrasea\Border\Manager::FORCE_RECORD);
|
||||
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getSha256'), array($this->media, self::$DI['collection']));
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getSha256'), array(self::$DI['app'], $this->media, self::$DI['collection']));
|
||||
|
||||
$mock
|
||||
->expects($this->once())
|
||||
@@ -63,7 +63,7 @@ class Sha256Test extends \PhraseanetPHPUnitAbstract
|
||||
*/
|
||||
public function testCheckNoFile()
|
||||
{
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getSha256'), array($this->media, self::$DI['collection']));
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getSha256'), array(self::$DI['app'], $this->media, self::$DI['collection']));
|
||||
|
||||
$mock
|
||||
->expects($this->once())
|
||||
|
@@ -50,7 +50,7 @@ class UUIDTest extends \PhraseanetPHPUnitAbstract
|
||||
*/
|
||||
public function testCheckNoFile()
|
||||
{
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getUUID'), array($this->media, self::$DI['collection']));
|
||||
$mock = $this->getMock('\\Alchemy\\Phrasea\\Border\\File', array('getUUID'), array(self::$DI['app'], $this->media, self::$DI['collection']));
|
||||
|
||||
$mock
|
||||
->expects($this->once())
|
||||
|
Reference in New Issue
Block a user