Core Configuration should not be done Authenticated

This commit is contained in:
Romain Neutron
2012-01-12 14:12:52 +01:00
parent e5fddd69eb
commit d547003706
5 changed files with 14 additions and 12 deletions

View File

@@ -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
{ {
/** /**

View File

@@ -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()

View File

@@ -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()

View File

@@ -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()

View File

@@ -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);
} }
} }