mirror of
https://github.com/e107inc/e107.git
synced 2025-08-31 18:11:56 +02:00
Expanded on getperms() test.
This commit is contained in:
@@ -12,19 +12,11 @@
|
||||
class class2Test extends \Codeception\Test\Unit
|
||||
{
|
||||
|
||||
/** @var ${TESTED_NAME} */
|
||||
protected $ep;
|
||||
|
||||
protected function _before()
|
||||
|
||||
function testLoadClass2()
|
||||
{
|
||||
|
||||
/*try
|
||||
{
|
||||
$this->ep = $this->make('${TESTED_NAME}');
|
||||
} catch(Exception $e)
|
||||
{
|
||||
$this->assertTrue(false, "Couldn't load ${TESTED_NAME} object");
|
||||
}*/
|
||||
require_once(e_BASE."class2.php"); // already loaded but coverage says otherwise.
|
||||
|
||||
}
|
||||
|
||||
@@ -41,16 +33,17 @@
|
||||
$result = getperms('U1|U2', '0.');
|
||||
$this->assertTrue($result);
|
||||
|
||||
/*
|
||||
|
||||
|
||||
$pid = e107::getDb()->retrieve('plugin', 'plugin_id', "plugin_path = 'gallery'");
|
||||
|
||||
$result = getperms('P', 'P'.$pid);
|
||||
$this->assertFalse($result);
|
||||
|
||||
// define('e_CURRENT_PLUGIN', 'gallery');
|
||||
$result = getperms('P', 'P'.$pid);
|
||||
|
||||
$result = getperms('P', 'P'.$pid, 'http://localhost/e107v2/e107_plugins/gallery/admin_config.php');
|
||||
$this->assertTrue($result);
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@@ -461,9 +461,10 @@
|
||||
{
|
||||
// $this->fixRegistry('before');
|
||||
|
||||
|
||||
e107::getUserExt()->init();
|
||||
$sc = e107::getScBatch('signup');
|
||||
|
||||
|
||||
$template = array(
|
||||
'extended-category' => "-- {EXTENDED_CAT_TEXT} --",
|
||||
'extended-user-fields' => "<label>{EXTENDED_USER_FIELD_TEXT}{EXTENDED_USER_FIELD_REQUIRED}</label>" // {EXTENDED_USER_FIELD_EDIT}
|
||||
|
Reference in New Issue
Block a user