mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
Linkwords plugin update.
Fixes issue with admin preferences not being respected or no linking occurring. Prefs now moved out of core and into plugin prefs. Test page added to admin area. Relationship field added. e_tohtml.php deprecated in favor of e_parse.php Tests updated.
This commit is contained in:
@@ -17,10 +17,10 @@
|
||||
|
||||
protected function _before()
|
||||
{
|
||||
require_once(e_PLUGIN."linkwords/e_tohtml.php");
|
||||
require_once(e_PLUGIN."linkwords/e_parse.php");
|
||||
try
|
||||
{
|
||||
$this->lw = $this->make('e_tohtml_linkwords');
|
||||
$this->lw = $this->make('linkwords_parse');
|
||||
} catch(Exception $e)
|
||||
{
|
||||
$this->assertTrue(false, "Couldn't load e_tohtml_linkwords object");
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
foreach($tests as $val)
|
||||
{
|
||||
$result = $this->lw->to_html($val['text'], 'BODY');
|
||||
$result = $this->lw->toHTML($val['text'], 'BODY');
|
||||
$this->assertEquals($val['expected'],$result);
|
||||
|
||||
}
|
||||
|
@@ -308,15 +308,15 @@
|
||||
{
|
||||
$this->pluginInstall('linkwords');
|
||||
|
||||
$pref1 = e107::pref('core', 'lw_custom_class');
|
||||
$pref1 = e107::pref('linkwords', 'lw_custom_class');
|
||||
$this->assertNotEmpty($pref1);
|
||||
|
||||
$pref2 = e107::pref('core', 'lw_context_visibility');
|
||||
$pref2 = e107::pref('linkwords', 'lw_context_visibility');
|
||||
$this->assertNotEmpty($pref2['SUMMARY']);
|
||||
|
||||
$this->pluginUninstall('linkwords');
|
||||
|
||||
$pref2 = e107::pref('core', 'lw_context_visibility');
|
||||
$pref2 = e107::pref('linkwords', 'lw_context_visibility');
|
||||
$this->assertEmpty($pref2);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user