mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 20:13:28 +00:00
Syntax Corrections
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
//require_once 'PHPUnit/Framework.php';
|
//require_once 'PHPUnit/Framework.php';
|
||||||
require_once dirname(__FILE__) . '/PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for ACL.
|
* Test class for ACL.
|
||||||
|
@@ -47,7 +47,7 @@ class ApplicationOverviewTest extends PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
|
|
||||||
public function createApplication()
|
public function createApplication()
|
||||||
{
|
{
|
||||||
return require dirname(__FILE__) . '/../../../../Alchemy/Phrasea/Application/Overview.php';
|
return require __DIR__ . '/../../../../Alchemy/Phrasea/Application/Overview.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
//$deliver_content = function(session $session, record_adapter $record, $subdef, $watermark, $stamp, $app)
|
//$deliver_content = function(session $session, record_adapter $record, $subdef, $watermark, $stamp, $app)
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Feed.php';
|
require_once __DIR__ . '/../../../../../Alchemy/Phrasea/Controller/Prod/Feed.php';
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Auth_Abstract.
|
* Test class for Bridge_Api_Auth_Abstract.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Auth_Flickr.
|
* Test class for Bridge_Api_Auth_Flickr.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Auth_OAuth2.
|
* Test class for Bridge_Api_Auth_OAuth2.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../Bridge_datas.inc';
|
require_once __DIR__ . '/../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_AbstractCollection.
|
* Test class for Bridge_Api_AbstractCollection.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../Bridge_datas.inc';
|
require_once __DIR__ . '/../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Abstract.
|
* Test class for Bridge_Api_Abstract.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../Bridge_datas.inc';
|
require_once __DIR__ . '/../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_ContainerCollection.
|
* Test class for Bridge_Api_ContainerCollection.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../Bridge_datas.inc';
|
require_once __DIR__ . '/../Bridge_datas.inc';
|
||||||
require_once dirname(__FILE__) . '/../../../classes/Bridge/Api/Dailymotion.class.php';
|
require_once __DIR__ . '/../../../classes/Bridge/Api/Dailymotion.class.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Dailymotion.
|
* Test class for Bridge_Api_Dailymotion.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../Bridge_datas.inc';
|
require_once __DIR__ . '/../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_ElementCollection.
|
* Test class for Bridge_Api_ElementCollection.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../Bridge_datas.inc';
|
require_once __DIR__ . '/../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Flickr.
|
* Test class for Bridge_Api_Flickr.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../Bridge_datas.inc';
|
require_once __DIR__ . '/../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Youtube.
|
* Test class for Bridge_Api_Youtube.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
require_once dirname(__FILE__) . '/../../../../classes/Bridge/Api/Dailymotion/Container.class.php';
|
require_once __DIR__ . '/../../../../classes/Bridge/Api/Dailymotion/Container.class.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Dailymotion_Container.
|
* Test class for Bridge_Api_Dailymotion_Container.
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
require_once dirname(__FILE__) . '/../../../../classes/Bridge/Api/Dailymotion/Element.class.php';
|
require_once __DIR__ . '/../../../../classes/Bridge/Api/Dailymotion/Element.class.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Dailymotion_Element.
|
* Test class for Bridge_Api_Dailymotion_Element.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Flickr_Container.
|
* Test class for Bridge_Api_Flickr_Container.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api_Flickr_Element.
|
* Test class for Bridge_Api_Flickr_Element.
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
|
|
||||||
$new_include_path = dirname(__FILE__) . '/../../../../vendor/gdata/' . PATH_SEPARATOR . get_include_path();
|
$new_include_path = __DIR__ . '/../../../../vendor/gdata/' . PATH_SEPARATOR . get_include_path();
|
||||||
set_include_path($new_include_path);
|
set_include_path($new_include_path);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../Bridge_datas.inc';
|
require_once __DIR__ . '/../../Bridge_datas.inc';
|
||||||
|
|
||||||
$new_include_path = dirname(__FILE__) . '/../../../../../vendor/alchemy/gdata/' . PATH_SEPARATOR . get_include_path();
|
$new_include_path = __DIR__ . '/../../../../../vendor/alchemy/gdata/' . PATH_SEPARATOR . get_include_path();
|
||||||
set_include_path($new_include_path);
|
set_include_path($new_include_path);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../bootstrap.php';
|
require_once __DIR__ . '/../../bootstrap.php';
|
||||||
require_once dirname(__FILE__) . '/Bridge_datas.inc';
|
require_once __DIR__ . '/Bridge_datas.inc';
|
||||||
|
|
||||||
use Silex\WebTestCase;
|
use Silex\WebTestCase;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/Bridge_datas.inc';
|
require_once __DIR__ . '/Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Account.
|
* Test class for Bridge_Account.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/Bridge_datas.inc';
|
require_once __DIR__ . '/Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Account.
|
* Test class for Bridge_Account.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/Bridge_datas.inc';
|
require_once __DIR__ . '/Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Api.
|
* Test class for Bridge_Api.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/Bridge_datas.inc';
|
require_once __DIR__ . '/Bridge_datas.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Bridge_Element.
|
* Test class for Bridge_Element.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../bootstrap.php';
|
require_once __DIR__ . '/../../bootstrap.php';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Phraseanet
|
* This file is part of Phraseanet
|
||||||
|
17
lib/unitTest/Doctrine/Repositories/Basket.php
Normal file
17
lib/unitTest/Doctrine/Repositories/Basket.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Phraseanet
|
||||||
|
*
|
||||||
|
* (c) 2005-2010 Alchemy
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please view the LICENSE
|
||||||
|
* file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package
|
||||||
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
|
* @link www.phraseanet.com
|
||||||
|
*/
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_Entry_Adapter.
|
* Test class for Feed_Entry_Adapter.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_Entry_Collection.
|
* Test class for Feed_Entry_Collection.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_Entry_Item.
|
* Test class for Feed_Entry_Item.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_Adapter.
|
* Test class for Feed_Adapter.
|
||||||
@@ -40,11 +40,11 @@ class Feed_AdapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
public function testSet_icon()
|
public function testSet_icon()
|
||||||
{
|
{
|
||||||
$this->assertEquals('/skins/icons/rss32.gif', self::$object->get_icon_url());
|
$this->assertEquals('/skins/icons/rss32.gif', self::$object->get_icon_url());
|
||||||
$file = new system_file(dirname(__FILE__) . '/../testfiles/p4logo.jpg');
|
$file = new system_file(__DIR__ . '/../testfiles/p4logo.jpg');
|
||||||
self::$object->set_icon($file);
|
self::$object->set_icon($file);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$file = new system_file(dirname(__FILE__) . '/../testfiles/iphone_pic.jpg');
|
$file = new system_file(__DIR__ . '/../testfiles/iphone_pic.jpg');
|
||||||
self::$object->set_icon($file);
|
self::$object->set_icon($file);
|
||||||
$this->fail('Should fail');
|
$this->fail('Should fail');
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_Aggregate.
|
* Test class for Feed_Aggregate.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_Collection.
|
* Test class for Feed_Collection.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_Link.
|
* Test class for Feed_Link.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_Publisher_Adapter.
|
* Test class for Feed_Publisher_Adapter.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_XML_Atom.
|
* Test class for Feed_XML_Atom.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_XML_RSS.
|
* Test class for Feed_XML_RSS.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Feed_XML_RSS_Image.
|
* Test class for Feed_XML_RSS_Image.
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetWebTestCaseAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetWebTestCaseAbstract.class.inc';
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
class Feed_rssfeedsTest extends PhraseanetWebTestCaseAbstract
|
class Feed_rssfeedsTest extends PhraseanetWebTestCaseAbstract
|
||||||
@@ -86,14 +86,14 @@ class Feed_rssfeedsTest extends PhraseanetWebTestCaseAbstract
|
|||||||
|
|
||||||
self::$feed_1_private = Feed_Adapter::create($appbox, self::$user, self::$feed_1_private_title, self::$feed_1_private_subtitle);
|
self::$feed_1_private = Feed_Adapter::create($appbox, self::$user, self::$feed_1_private_title, self::$feed_1_private_subtitle);
|
||||||
self::$feed_1_private->set_public(false);
|
self::$feed_1_private->set_public(false);
|
||||||
self::$feed_1_private->set_icon(new system_file(dirname(__FILE__) . '/../testfiles/logocoll.gif'));
|
self::$feed_1_private->set_icon(new system_file(__DIR__ . '/../testfiles/logocoll.gif'));
|
||||||
|
|
||||||
self::$feed_2_private = Feed_Adapter::create($appbox, self::$user, self::$feed_2_private_title, self::$feed_2_private_subtitle);
|
self::$feed_2_private = Feed_Adapter::create($appbox, self::$user, self::$feed_2_private_title, self::$feed_2_private_subtitle);
|
||||||
self::$feed_2_private->set_public(false);
|
self::$feed_2_private->set_public(false);
|
||||||
|
|
||||||
self::$feed_3_public = Feed_Adapter::create($appbox, self::$user, self::$feed_3_public_title, self::$feed_3_public_subtitle);
|
self::$feed_3_public = Feed_Adapter::create($appbox, self::$user, self::$feed_3_public_title, self::$feed_3_public_subtitle);
|
||||||
self::$feed_3_public->set_public(true);
|
self::$feed_3_public->set_public(true);
|
||||||
self::$feed_3_public->set_icon(new system_file(dirname(__FILE__) . '/../testfiles/logocoll.gif'));
|
self::$feed_3_public->set_icon(new system_file(__DIR__ . '/../testfiles/logocoll.gif'));
|
||||||
|
|
||||||
self::$feed_4_public = Feed_Adapter::create($appbox, self::$user, self::$feed_4_public_title, self::$feed_4_public_subtitle);
|
self::$feed_4_public = Feed_Adapter::create($appbox, self::$user, self::$feed_4_public_title, self::$feed_4_public_subtitle);
|
||||||
self::$feed_4_public->set_public(true);
|
self::$feed_4_public->set_public(true);
|
||||||
@@ -165,7 +165,7 @@ class Feed_rssfeedsTest extends PhraseanetWebTestCaseAbstract
|
|||||||
|
|
||||||
public function createApplication()
|
public function createApplication()
|
||||||
{
|
{
|
||||||
return require dirname(__FILE__) . '/../../../lib/Alchemy/Phrasea/Application/Root.php';
|
return require __DIR__ . '/../../../lib/Alchemy/Phrasea/Application/Root.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
//$app->get('/feeds/aggregated/{format}/', function($format) use ($app, $appbox, $display_feed)
|
//$app->get('/feeds/aggregated/{format}/', function($format) use ($app, $appbox, $display_feed)
|
||||||
|
@@ -921,7 +921,7 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
|||||||
{
|
{
|
||||||
self::$story_1 = \record_adapter::create(
|
self::$story_1 = \record_adapter::create(
|
||||||
self::$collection
|
self::$collection
|
||||||
, new system_file(dirname(__FILE__) . '/testfiles/test001.CR2')
|
, new system_file(__DIR__ . '/testfiles/test001.CR2')
|
||||||
, false
|
, false
|
||||||
, true
|
, true
|
||||||
);
|
);
|
||||||
@@ -1093,139 +1093,139 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
|
|||||||
if ((static::$need_records === true || static::$need_records >= 1) && !self::$record_1 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 1) && !self::$record_1 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 1\n";
|
echo "generate record 1\n";
|
||||||
self::$record_sf_1 = new system_file(dirname(__FILE__) . '/testfiles/test001.CR2');
|
self::$record_sf_1 = new system_file(__DIR__ . '/testfiles/test001.CR2');
|
||||||
self::$record_1 = record_adapter::create(self::$collection, self::$record_sf_1);
|
self::$record_1 = record_adapter::create(self::$collection, self::$record_sf_1);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 2) && !self::$record_2 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 2) && !self::$record_2 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 2\n";
|
echo "generate record 2\n";
|
||||||
self::$record_sf_2 = new system_file(dirname(__FILE__) . '/testfiles/test002.CR2');
|
self::$record_sf_2 = new system_file(__DIR__ . '/testfiles/test002.CR2');
|
||||||
self::$record_2 = record_adapter::create(self::$collection, self::$record_sf_2);
|
self::$record_2 = record_adapter::create(self::$collection, self::$record_sf_2);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 3) && !self::$record_3 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 3) && !self::$record_3 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 3\n";
|
echo "generate record 3\n";
|
||||||
self::$record_sf_3 = new system_file(dirname(__FILE__) . '/testfiles/test003.CR2');
|
self::$record_sf_3 = new system_file(__DIR__ . '/testfiles/test003.CR2');
|
||||||
self::$record_3 = record_adapter::create(self::$collection, self::$record_sf_3);
|
self::$record_3 = record_adapter::create(self::$collection, self::$record_sf_3);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 4) && !self::$record_4 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 4) && !self::$record_4 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 4\n";
|
echo "generate record 4\n";
|
||||||
self::$record_sf_4 = new system_file(dirname(__FILE__) . '/testfiles/test004.CR2');
|
self::$record_sf_4 = new system_file(__DIR__ . '/testfiles/test004.CR2');
|
||||||
self::$record_4 = record_adapter::create(self::$collection, self::$record_sf_4);
|
self::$record_4 = record_adapter::create(self::$collection, self::$record_sf_4);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 5) && !self::$record_5 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 5) && !self::$record_5 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 5\n";
|
echo "generate record 5\n";
|
||||||
self::$record_sf_5 = new system_file(dirname(__FILE__) . '/testfiles/test005.CR2');
|
self::$record_sf_5 = new system_file(__DIR__ . '/testfiles/test005.CR2');
|
||||||
self::$record_5 = record_adapter::create(self::$collection, self::$record_sf_5);
|
self::$record_5 = record_adapter::create(self::$collection, self::$record_sf_5);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 6) && !self::$record_6 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 6) && !self::$record_6 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 6\n";
|
echo "generate record 6\n";
|
||||||
self::$record_sf_6 = new system_file(dirname(__FILE__) . '/testfiles/test006.wav');
|
self::$record_sf_6 = new system_file(__DIR__ . '/testfiles/test006.wav');
|
||||||
self::$record_6 = record_adapter::create(self::$collection, self::$record_sf_6);
|
self::$record_6 = record_adapter::create(self::$collection, self::$record_sf_6);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 7) && !self::$record_7 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 7) && !self::$record_7 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 7\n";
|
echo "generate record 7\n";
|
||||||
self::$record_sf_7 = new system_file(dirname(__FILE__) . '/testfiles/test007.ppt');
|
self::$record_sf_7 = new system_file(__DIR__ . '/testfiles/test007.ppt');
|
||||||
self::$record_7 = record_adapter::create(self::$collection, self::$record_sf_7);
|
self::$record_7 = record_adapter::create(self::$collection, self::$record_sf_7);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 8) && !self::$record_8 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 8) && !self::$record_8 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 8\n";
|
echo "generate record 8\n";
|
||||||
self::$record_sf_8 = new system_file(dirname(__FILE__) . '/testfiles/test008.ai');
|
self::$record_sf_8 = new system_file(__DIR__ . '/testfiles/test008.ai');
|
||||||
self::$record_8 = record_adapter::create(self::$collection, self::$record_sf_8);
|
self::$record_8 = record_adapter::create(self::$collection, self::$record_sf_8);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 9) && !self::$record_9 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 9) && !self::$record_9 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 9\n";
|
echo "generate record 9\n";
|
||||||
self::$record_sf_9 = new system_file(dirname(__FILE__) . '/testfiles/test009.TIFF');
|
self::$record_sf_9 = new system_file(__DIR__ . '/testfiles/test009.TIFF');
|
||||||
self::$record_9 = record_adapter::create(self::$collection, self::$record_sf_9);
|
self::$record_9 = record_adapter::create(self::$collection, self::$record_sf_9);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 10) && !self::$record_10 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 10) && !self::$record_10 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
self::$record_sf_10 = new system_file(dirname(__FILE__) . '/testfiles/test010.fla');
|
self::$record_sf_10 = new system_file(__DIR__ . '/testfiles/test010.fla');
|
||||||
echo "generate record 10\n";
|
echo "generate record 10\n";
|
||||||
self::$record_10 = record_adapter::create(self::$collection, self::$record_sf_10);
|
self::$record_10 = record_adapter::create(self::$collection, self::$record_sf_10);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 11) && !self::$record_11 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 11) && !self::$record_11 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
self::$record_sf_11 = new system_file(dirname(__FILE__) . '/testfiles/test011.swf');
|
self::$record_sf_11 = new system_file(__DIR__ . '/testfiles/test011.swf');
|
||||||
echo "generate record 11\n";
|
echo "generate record 11\n";
|
||||||
self::$record_11 = record_adapter::create(self::$collection, self::$record_sf_11);
|
self::$record_11 = record_adapter::create(self::$collection, self::$record_sf_11);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 12) && !self::$record_12 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 12) && !self::$record_12 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
self::$record_sf_12 = new system_file(dirname(__FILE__) . '/testfiles/test012.wav');
|
self::$record_sf_12 = new system_file(__DIR__ . '/testfiles/test012.wav');
|
||||||
echo "generate record 12\n";
|
echo "generate record 12\n";
|
||||||
self::$record_12 = record_adapter::create(self::$collection, self::$record_sf_12);
|
self::$record_12 = record_adapter::create(self::$collection, self::$record_sf_12);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 13) && !self::$record_13 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 13) && !self::$record_13 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
self::$record_sf_13 = new system_file(dirname(__FILE__) . '/testfiles/test013.ai');
|
self::$record_sf_13 = new system_file(__DIR__ . '/testfiles/test013.ai');
|
||||||
echo "generate record 13\n";
|
echo "generate record 13\n";
|
||||||
self::$record_13 = record_adapter::create(self::$collection, self::$record_sf_13);
|
self::$record_13 = record_adapter::create(self::$collection, self::$record_sf_13);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 14) && !self::$record_14 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 14) && !self::$record_14 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 14\n";
|
echo "generate record 14\n";
|
||||||
self::$record_sf_14 = new system_file(dirname(__FILE__) . '/testfiles/test014.swf');
|
self::$record_sf_14 = new system_file(__DIR__ . '/testfiles/test014.swf');
|
||||||
self::$record_14 = record_adapter::create(self::$collection, self::$record_sf_14);
|
self::$record_14 = record_adapter::create(self::$collection, self::$record_sf_14);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 15) && !self::$record_15 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 15) && !self::$record_15 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 15\n";
|
echo "generate record 15\n";
|
||||||
self::$record_sf_15 = new system_file(dirname(__FILE__) . '/testfiles/test015.eps');
|
self::$record_sf_15 = new system_file(__DIR__ . '/testfiles/test015.eps');
|
||||||
self::$record_15 = record_adapter::create(self::$collection, self::$record_sf_15);
|
self::$record_15 = record_adapter::create(self::$collection, self::$record_sf_15);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 16) && !self::$record_16 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 16) && !self::$record_16 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 16\n";
|
echo "generate record 16\n";
|
||||||
self::$record_sf_16 = new system_file(dirname(__FILE__) . '/testfiles/test016.ai');
|
self::$record_sf_16 = new system_file(__DIR__ . '/testfiles/test016.ai');
|
||||||
self::$record_16 = record_adapter::create(self::$collection, self::$record_sf_16);
|
self::$record_16 = record_adapter::create(self::$collection, self::$record_sf_16);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 17) && !self::$record_17 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 17) && !self::$record_17 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 17\n";
|
echo "generate record 17\n";
|
||||||
self::$record_sf_17 = new system_file(dirname(__FILE__) . '/testfiles/test017.wav');
|
self::$record_sf_17 = new system_file(__DIR__ . '/testfiles/test017.wav');
|
||||||
self::$record_17 = record_adapter::create(self::$collection, self::$record_sf_17);
|
self::$record_17 = record_adapter::create(self::$collection, self::$record_sf_17);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 18) && !self::$record_18 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 18) && !self::$record_18 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 18\n";
|
echo "generate record 18\n";
|
||||||
self::$record_sf_18 = new system_file(dirname(__FILE__) . '/testfiles/test018.TIFF');
|
self::$record_sf_18 = new system_file(__DIR__ . '/testfiles/test018.TIFF');
|
||||||
self::$record_18 = record_adapter::create(self::$collection, self::$record_sf_18);
|
self::$record_18 = record_adapter::create(self::$collection, self::$record_sf_18);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 19) && !self::$record_19 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 19) && !self::$record_19 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 19\n";
|
echo "generate record 19\n";
|
||||||
self::$record_sf_19 = new system_file(dirname(__FILE__) . '/testfiles/test019.mp3');
|
self::$record_sf_19 = new system_file(__DIR__ . '/testfiles/test019.mp3');
|
||||||
self::$record_19 = record_adapter::create(self::$collection, self::$record_sf_19);
|
self::$record_19 = record_adapter::create(self::$collection, self::$record_sf_19);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 20) && !self::$record_20 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 20) && !self::$record_20 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 20\n";
|
echo "generate record 20\n";
|
||||||
self::$record_sf_20 = new system_file(dirname(__FILE__) . '/testfiles/test020.mp3');
|
self::$record_sf_20 = new system_file(__DIR__ . '/testfiles/test020.mp3');
|
||||||
self::$record_20 = record_adapter::create(self::$collection, self::$record_sf_20);
|
self::$record_20 = record_adapter::create(self::$collection, self::$record_sf_20);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 21) && !self::$record_21 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 21) && !self::$record_21 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 21\n";
|
echo "generate record 21\n";
|
||||||
self::$record_sf_21 = new system_file(dirname(__FILE__) . '/testfiles/test021.fla');
|
self::$record_sf_21 = new system_file(__DIR__ . '/testfiles/test021.fla');
|
||||||
self::$record_21 = record_adapter::create(self::$collection, self::$record_sf_21);
|
self::$record_21 = record_adapter::create(self::$collection, self::$record_sf_21);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 22) && !self::$record_22 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 22) && !self::$record_22 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 22\n";
|
echo "generate record 22\n";
|
||||||
self::$record_sf_22 = new system_file(dirname(__FILE__) . '/testfiles/test022.swf');
|
self::$record_sf_22 = new system_file(__DIR__ . '/testfiles/test022.swf');
|
||||||
self::$record_22 = record_adapter::create(self::$collection, self::$record_sf_22);
|
self::$record_22 = record_adapter::create(self::$collection, self::$record_sf_22);
|
||||||
}
|
}
|
||||||
if ((static::$need_records === true || static::$need_records >= 23) && !self::$record_23 instanceof record_adapter)
|
if ((static::$need_records === true || static::$need_records >= 23) && !self::$record_23 instanceof record_adapter)
|
||||||
{
|
{
|
||||||
echo "generate record 23\n";
|
echo "generate record 23\n";
|
||||||
self::$record_sf_23 = new system_file(dirname(__FILE__) . '/testfiles/test023.mp4');
|
self::$record_sf_23 = new system_file(__DIR__ . '/testfiles/test023.mp4');
|
||||||
self::$record_23 = record_adapter::create(self::$collection, self::$record_sf_23);
|
self::$record_23 = record_adapter::create(self::$collection, self::$record_sf_23);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
require_once dirname(__FILE__) . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
use Silex\WebTestCase;
|
use Silex\WebTestCase;
|
||||||
use Symfony\Component\HttpKernel\Client;
|
use Symfony\Component\HttpKernel\Client;
|
||||||
|
@@ -15,13 +15,13 @@
|
|||||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||||
* @link www.phraseanet.com
|
* @link www.phraseanet.com
|
||||||
*/
|
*/
|
||||||
require_once dirname(__FILE__) . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
use Silex\WebTestCase;
|
use Silex\WebTestCase;
|
||||||
use Symfony\Component\HttpKernel\Client;
|
use Symfony\Component\HttpKernel\Client;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
abstract class PhraseanetWebTestCaseAbstract extends PhraseanetPHPUnitAbstract
|
abstract class PhraseanetWebTestCaseAbstract extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Authentication_Guest.
|
* Test class for Session_Authentication_Guest.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Authentication_Native.
|
* Test class for Session_Authentication_Native.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Authentication_PersistentCookie.
|
* Test class for Session_Authentication_PersistentCookie.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Authentication_Token.
|
* Test class for Session_Authentication_Token.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Handler.
|
* Test class for Session_Handler.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Logger.
|
* Test class for Session_Logger.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Phrasea.
|
* Test class for Session_Phrasea.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Storage_CommandLine.
|
* Test class for Session_Storage_CommandLine.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Session_Storage_PHPSession.
|
* Test class for Session_Storage_PHPSession.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Setup_Constraint.
|
* Test class for Setup_Constraint.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for Setup_Upgrade.
|
* Test class for Setup_Upgrade.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
class API_OAuth2_AuthCodeTest extends PhraseanetPHPUnitAbstract
|
class API_OAuth2_AuthCodeTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
class API_OAuth2_RefreshTokenTest extends PhraseanetPHPUnitAbstract
|
class API_OAuth2_RefreshTokenTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
class API_OAuth2_AccountTest extends PhraseanetPHPUnitAbstract
|
class API_OAuth2_AccountTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
class API_OAuth2_ApplicationTest extends PhraseanetPHPUnitAbstract
|
class API_OAuth2_ApplicationTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
class API_OAuth2_TokenTest extends PhraseanetPHPUnitAbstract
|
class API_OAuth2_TokenTest extends PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetWebTestCaseAuthenticatedAbstract.class.inc';
|
||||||
require_once __DIR__ . "/../../../../lib/vendor/Silex/autoload.php";
|
require_once __DIR__ . "/../../../../lib/vendor/Silex/autoload.php";
|
||||||
/*
|
/*
|
||||||
* This file is part of Phraseanet
|
* This file is part of Phraseanet
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for API_V1_adapter.
|
* Test class for API_V1_adapter.
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . "/../../../../lib/vendor/oauth2/lib/OAuth2.inc";
|
require_once __DIR__ . "/../../../../lib/vendor/oauth2/lib/OAuth2.inc";
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../../../lib/vendor/symfony/src/Symfony/Component/Yaml/Parser.php';
|
require_once __DIR__ . '/../../../../lib/vendor/symfony/src/Symfony/Component/Yaml/Parser.php';
|
||||||
|
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetWebTestCaseAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetWebTestCaseAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../../bootstrap.php';
|
require_once __DIR__ . '/../../../bootstrap.php';
|
||||||
API_OAuth2_Autoloader::register();
|
API_OAuth2_Autoloader::register();
|
||||||
|
|
||||||
use Silex\WebTestCase;
|
use Silex\WebTestCase;
|
||||||
@@ -41,7 +41,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
|
|
||||||
public function createApplication()
|
public function createApplication()
|
||||||
{
|
{
|
||||||
return require dirname(__FILE__) . '/../../../../lib/Alchemy/Phrasea/Application/Api.php';
|
return require __DIR__ . '/../../../../lib/Alchemy/Phrasea/Application/Api.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRouteNotFound()
|
public function testRouteNotFound()
|
||||||
@@ -86,7 +86,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
|
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
$record_id = $record->get_record_id();
|
$record_id = $record->get_record_id();
|
||||||
@@ -368,7 +368,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
|
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -400,7 +400,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -432,7 +432,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -553,7 +553,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -589,7 +589,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -659,7 +659,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -723,7 +723,7 @@ class API_V1_test_adapter extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetWebTestCaseAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetWebTestCaseAbstract.class.inc';
|
||||||
require_once dirname(__FILE__) . '/../../../bootstrap.php';
|
require_once __DIR__ . '/../../../bootstrap.php';
|
||||||
|
|
||||||
bootstrap::register_autoloads();
|
bootstrap::register_autoloads();
|
||||||
API_OAuth2_Autoloader::register();
|
API_OAuth2_Autoloader::register();
|
||||||
@@ -50,7 +50,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
|
|
||||||
public function createApplication()
|
public function createApplication()
|
||||||
{
|
{
|
||||||
return require dirname(__FILE__) . '/../../../../lib/Alchemy/Phrasea/Application/Api.php';
|
return require __DIR__ . '/../../../../lib/Alchemy/Phrasea/Application/Api.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRouteNotFound()
|
public function testRouteNotFound()
|
||||||
@@ -95,7 +95,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
|
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
$record_id = $record->get_record_id();
|
$record_id = $record->get_record_id();
|
||||||
@@ -376,7 +376,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
|
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -408,7 +408,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -440,7 +440,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -562,7 +562,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -598,7 +598,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -668,7 +668,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
@@ -732,7 +732,7 @@ class API_V1_test_adapterYaml extends PhraseanetWebTestCaseAbstract
|
|||||||
{
|
{
|
||||||
$databox = databox::get_instance($databox_id);
|
$databox = databox::get_instance($databox_id);
|
||||||
$collection = array_shift($databox->get_collections());
|
$collection = array_shift($databox->get_collections());
|
||||||
$system_file = new system_file(dirname(__FILE__) . '/../../testfiles/cestlafete.jpg');
|
$system_file = new system_file(__DIR__ . '/../../testfiles/cestlafete.jpg');
|
||||||
|
|
||||||
$record = record_adapter::create($collection, $system_file);
|
$record = record_adapter::create($collection, $system_file);
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for collection.
|
* Test class for collection.
|
||||||
@@ -89,7 +89,7 @@ class collectionTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
|
|
||||||
public function testEmpty_collection()
|
public function testEmpty_collection()
|
||||||
{
|
{
|
||||||
$record = record_adapter::create(self::$object, new system_file(dirname(__FILE__) . '/testfiles/cestlafete.jpg'));
|
$record = record_adapter::create(self::$object, new system_file(__DIR__ . '/testfiles/cestlafete.jpg'));
|
||||||
$this->assertTrue(self::$object->get_record_amount() > 0);
|
$this->assertTrue(self::$object->get_record_amount() > 0);
|
||||||
self::$object->empty_collection();
|
self::$object->empty_collection();
|
||||||
$this->assertTrue(self::$object->get_record_amount() === 0);
|
$this->assertTrue(self::$object->get_record_amount() === 0);
|
||||||
@@ -136,7 +136,7 @@ class collectionTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
public function testGet_record_amount()
|
public function testGet_record_amount()
|
||||||
{
|
{
|
||||||
self::$object->empty_collection();
|
self::$object->empty_collection();
|
||||||
$record = record_adapter::create(self::$object, new system_file(dirname(__FILE__) . '/testfiles/cestlafete.jpg'));
|
$record = record_adapter::create(self::$object, new system_file(__DIR__ . '/testfiles/cestlafete.jpg'));
|
||||||
$this->assertTrue(self::$object->get_record_amount() === 1);
|
$this->assertTrue(self::$object->get_record_amount() === 1);
|
||||||
self::$object->empty_collection();
|
self::$object->empty_collection();
|
||||||
$this->assertTrue(self::$object->get_record_amount() === 0);
|
$this->assertTrue(self::$object->get_record_amount() === 0);
|
||||||
@@ -144,7 +144,7 @@ class collectionTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
|
|
||||||
public function testGet_record_details()
|
public function testGet_record_details()
|
||||||
{
|
{
|
||||||
$record = record_adapter::create(self::$object, new system_file(dirname(__FILE__) . '/testfiles/cestlafete.jpg'));
|
$record = record_adapter::create(self::$object, new system_file(__DIR__ . '/testfiles/cestlafete.jpg'));
|
||||||
$details = self::$object->get_record_details();
|
$details = self::$object->get_record_details();
|
||||||
|
|
||||||
$this->assertTrue(is_array($details));
|
$this->assertTrue(is_array($details));
|
||||||
@@ -164,7 +164,7 @@ class collectionTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
|
|
||||||
public function testUpdate_logo()
|
public function testUpdate_logo()
|
||||||
{
|
{
|
||||||
$pathfile = new system_file(dirname(__FILE__) . '/testfiles/logocoll.gif');
|
$pathfile = new system_file(__DIR__ . '/testfiles/logocoll.gif');
|
||||||
self::$object->update_logo($pathfile);
|
self::$object->update_logo($pathfile);
|
||||||
$this->assertEquals(file_get_contents($pathfile->getPathname()), self::$object->get_binary_minilogos());
|
$this->assertEquals(file_get_contents($pathfile->getPathname()), self::$object->get_binary_minilogos());
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Contributor.
|
* Test class for databox_Field_DCES_Contributor.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Coverage.
|
* Test class for databox_Field_DCES_Coverage.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Creator.
|
* Test class for databox_Field_DCES_Creator.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Date.
|
* Test class for databox_Field_DCES_Date.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Description.
|
* Test class for databox_Field_DCES_Description.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Format.
|
* Test class for databox_Field_DCES_Format.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Identifier.
|
* Test class for databox_Field_DCES_Identifier.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Language.
|
* Test class for databox_Field_DCES_Language.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Publisher.
|
* Test class for databox_Field_DCES_Publisher.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Relation.
|
* Test class for databox_Field_DCES_Relation.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Rights.
|
* Test class for databox_Field_DCES_Rights.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Source.
|
* Test class for databox_Field_DCES_Source.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Subject.
|
* Test class for databox_Field_DCES_Subject.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Title.
|
* Test class for databox_Field_DCES_Title.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCES_Type.
|
* Test class for databox_Field_DCES_Type.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_Field_DCESAbstract.
|
* Test class for databox_Field_DCESAbstract.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_cgu.
|
* Test class for databox_cgu.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_descriptionStructure.
|
* Test class for databox_descriptionStructure.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_field.
|
* Test class for databox_field.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_fieldUnknown.
|
* Test class for databox_fieldUnknown.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_status.
|
* Test class for databox_status.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdefAbstract.
|
* Test class for databox_subdefAbstract.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdefsStructure.
|
* Test class for databox_subdefsStructure.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_audio.
|
* Test class for databox_subdef_audio.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_document.
|
* Test class for databox_subdef_document.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_flash.
|
* Test class for databox_subdef_flash.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_image.
|
* Test class for databox_subdef_image.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_mediatypeAbstract.
|
* Test class for databox_subdef_mediatypeAbstract.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_video.
|
* Test class for databox_subdef_video.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_mediatype_audio.
|
* Test class for databox_subdef_mediatype_audio.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_mediatype_flexpaper.
|
* Test class for databox_subdef_mediatype_flexpaper.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_mediatype_gif.
|
* Test class for databox_subdef_mediatype_gif.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_mediatype_image.
|
* Test class for databox_subdef_mediatype_image.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for databox_subdef_mediatype_video.
|
* Test class for databox_subdef_mediatype_video.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for format.
|
* Test class for format.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for geonames.
|
* Test class for geonames.
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once dirname(__FILE__) . '/../PhraseanetPHPUnitAbstract.class.inc';
|
require_once __DIR__ . '/../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test class for http_request.
|
* Test class for http_request.
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user