mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
#Issue #4473 - some merged code.
This commit is contained in:
@@ -9,20 +9,14 @@
|
||||
|
||||
protected function _before()
|
||||
{
|
||||
if(e107::getDb()->isEmpty('comments'))
|
||||
e107::getDb()->truncate('comments');
|
||||
$path = codecept_data_dir().'comments/commentsSetup.xml';
|
||||
$result = e107::getXml()->e107Import($path);
|
||||
if(!empty($result['failed']))
|
||||
{
|
||||
$path = codecept_data_dir().'comments/commentsSetup.xml';
|
||||
$result = e107::getXml()->e107Import($path);
|
||||
if(!empty($result['failed']))
|
||||
{
|
||||
$this->fail("Vstore setup failed. ".print_r($result['failed'], true));
|
||||
}
|
||||
|
||||
$this->fail("Comment setup failed. ".print_r($result['failed'], true));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
$this->cm = e107::getComment();
|
||||
|
Reference in New Issue
Block a user