mirror of
https://github.com/e107inc/e107.git
synced 2025-08-30 17:50:12 +02:00
Extra tests and minor cleanup for PHP 8.3.
This commit is contained in:
@@ -382,10 +382,13 @@
|
||||
|
||||
}
|
||||
*/
|
||||
/*
|
||||
public function testSetConfig()
|
||||
|
||||
/* public function testSetConfig()
|
||||
{
|
||||
$cfg = e107::getConfig();
|
||||
$cfg = e107::getConfig('core',true, true);
|
||||
|
||||
$this->assertIsObject($cfg);
|
||||
|
||||
$before = $cfg->get('sitename');
|
||||
$this->ui->setConfig($cfg);
|
||||
|
||||
@@ -394,8 +397,8 @@
|
||||
|
||||
$this->assertSame($after, $before);
|
||||
|
||||
}
|
||||
*/
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -26,7 +26,7 @@
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
$this->assertTrue(false, "Couldn't load e_plugin object: $e");
|
||||
static::fail("Couldn't load e_plugin object: $e");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,12 +221,18 @@
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
*/
|
||||
public function testGetIcon()
|
||||
{
|
||||
$result = $this->ep->clearCache()->load('gallery')->getIcon(32);
|
||||
$expected = "<img src='./e107_plugins/gallery/images/gallery_32.png' alt=\"Gallery\" class='icon S32' />";
|
||||
self::assertSame($expected, $result);
|
||||
|
||||
$result = $this->ep->clearCache()->load('gallery')->getIcon(32, 'path');
|
||||
$expected = '{e_PLUGIN}gallery/images/gallery_32.png';
|
||||
self::assertSame($expected, $result);
|
||||
}
|
||||
*/
|
||||
|
||||
public function testGetInstalled()
|
||||
{
|
||||
$result = $this->ep->clearCache()->getInstalled();
|
||||
|
Reference in New Issue
Block a user