mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Core Configuration should not be done Authenticated
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
use Alchemy\Phrasea\Core as PhraseaCore;
|
use Alchemy\Phrasea\Core as PhraseaCore;
|
||||||
use Alchemy\Phrasea\Core\Configuration\Application;
|
use Alchemy\Phrasea\Core\Configuration\Application;
|
||||||
@@ -20,7 +20,7 @@ use Alchemy\Phrasea\Core\Configuration\Application;
|
|||||||
* @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
|
||||||
*/
|
*/
|
||||||
class ApplicationTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
class ApplicationTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
use Alchemy\Phrasea\Core as PhraseaCore;
|
use Alchemy\Phrasea\Core as PhraseaCore;
|
||||||
use Alchemy\Phrasea\Core\Configuration;
|
use Alchemy\Phrasea\Core\Configuration;
|
||||||
@@ -20,7 +20,7 @@ use Alchemy\Phrasea\Core\Configuration;
|
|||||||
* @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
|
||||||
*/
|
*/
|
||||||
class ConfigurationTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
class ConfigurationTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
use Alchemy\Phrasea\Core\Configuration;
|
use Alchemy\Phrasea\Core\Configuration;
|
||||||
use Alchemy\Phrasea\Core\Configuration\Application;
|
use Alchemy\Phrasea\Core\Configuration\Application;
|
||||||
@@ -20,7 +20,7 @@ use Alchemy\Phrasea\Core\Configuration\Application;
|
|||||||
* @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
|
||||||
*/
|
*/
|
||||||
class handlerTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
class handlerTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
use Alchemy\Phrasea\Core as PhraseaCore;
|
use Alchemy\Phrasea\Core as PhraseaCore;
|
||||||
use Alchemy\Phrasea\Core\Configuration\Parser\Yaml;
|
use Alchemy\Phrasea\Core\Configuration\Parser\Yaml;
|
||||||
@@ -20,7 +20,7 @@ use Alchemy\Phrasea\Core\Configuration\Parser\Yaml;
|
|||||||
* @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
|
||||||
*/
|
*/
|
||||||
class parserTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
class parserTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
* file that was distributed with this source code.
|
* file that was distributed with this source code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../PhraseanetPHPUnitAuthenticatedAbstract.class.inc';
|
require_once __DIR__ . '/../../../PhraseanetPHPUnitAbstract.class.inc';
|
||||||
|
|
||||||
use Alchemy\Phrasea\Core\Version;
|
use Alchemy\Phrasea\Core\Version;
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ use Alchemy\Phrasea\Core\Version;
|
|||||||
* @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
|
||||||
*/
|
*/
|
||||||
class VersionTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
class VersionTest extends \PhraseanetPHPUnitAbstract
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -38,11 +38,13 @@ class VersionTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
|||||||
|
|
||||||
public function testGetNumber()
|
public function testGetNumber()
|
||||||
{
|
{
|
||||||
$this->assertTrue(is_string(Version::getName()));
|
$this->assertTrue(is_string(Version::getNumber()));
|
||||||
|
$this->assertRegExp('/[\d]{1}\.[\d]{1,2}\.[\d]{1,2}/', Version::getNumber());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testGetName()
|
public function testGetName()
|
||||||
{
|
{
|
||||||
$this->assertTrue(is_string(Version::getNumber()));
|
$this->assertTrue(is_string(Version::getName()));
|
||||||
|
$this->assertTrue(strlen(Version::getName()) > 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user