mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
e107_tests: Removed usages of var_dump()
This commit is contained in:
@@ -1357,7 +1357,6 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
public function testThemeLan()
|
public function testThemeLan()
|
||||||
{
|
{
|
||||||
$result = e107::themeLan(null, 'basic-light');
|
$result = e107::themeLan(null, 'basic-light');
|
||||||
var_dump($result);
|
|
||||||
|
|
||||||
}*/
|
}*/
|
||||||
/*
|
/*
|
||||||
@@ -1887,9 +1886,6 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
|
|
||||||
// $this->e107->prepare_request();
|
// $this->e107->prepare_request();
|
||||||
|
|
||||||
// var_dump($_SERVER['QUEST_STRING']);
|
|
||||||
|
|
||||||
|
|
||||||
// $res = null;
|
// $res = null;
|
||||||
// $this->assertTrue($res);
|
// $this->assertTrue($res);
|
||||||
}
|
}
|
||||||
@@ -2009,12 +2005,10 @@ class e107Test extends \Codeception\Test\Unit
|
|||||||
|
|
||||||
$result = $obj::isInstalled('user');
|
$result = $obj::isInstalled('user');
|
||||||
|
|
||||||
// var_dump($result);
|
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
$result = $obj::isInstalled('news');
|
$result = $obj::isInstalled('news');
|
||||||
|
|
||||||
// var_dump($result);
|
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1124,7 +1124,6 @@
|
|||||||
{
|
{
|
||||||
$data = $this->ue->getFields();
|
$data = $this->ue->getFields();
|
||||||
$this->assertArrayHasKey('text', $data);
|
$this->assertArrayHasKey('text', $data);
|
||||||
// var_dump($data);
|
|
||||||
// $this->assertCount(15, $data);
|
// $this->assertCount(15, $data);
|
||||||
|
|
||||||
$data = $this->ue->getFields(16);
|
$data = $this->ue->getFields(16);
|
||||||
|
@@ -25,12 +25,7 @@
|
|||||||
{
|
{
|
||||||
$result = preg_replace('/[^\w\-:.]/', '', $var['text']); // this pattern used in parts of the admin-ui.
|
$result = preg_replace('/[^\w\-:.]/', '', $var['text']); // this pattern used in parts of the admin-ui.
|
||||||
$this->assertEquals($var['expected'], $result);
|
$this->assertEquals($var['expected'], $result);
|
||||||
//var_dump($result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// echo array_flip(get_defined_constants(true)['pcre'])[preg_last_error()];
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -132,10 +132,6 @@ $data = array (
|
|||||||
$input = array('myarray'=>'myvalue');
|
$input = array('myarray'=>'myvalue');
|
||||||
$result = $this->arrObj->unserialize($input);
|
$result = $this->arrObj->unserialize($input);
|
||||||
$this->assertSame($input, $result);
|
$this->assertSame($input, $result);
|
||||||
|
|
||||||
|
|
||||||
// var_dump($actual);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|
||||||
|
@@ -1010,10 +1010,6 @@ abstract class e_db_abstractTest extends \Codeception\Test\Unit
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->assertEquals($expected, $actual);
|
$this->assertEquals($expected, $actual);
|
||||||
|
|
||||||
|
|
||||||
//$actual = $this->db->getFieldDefs('userclass_classes');
|
|
||||||
//var_dump($actual);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -80,11 +80,8 @@
|
|||||||
$json = $this->md->processAjaxImport($file,$var['param']);
|
$json = $this->md->processAjaxImport($file,$var['param']);
|
||||||
|
|
||||||
$result = json_decode($json, JSON_PRETTY_PRINT);
|
$result = json_decode($json, JSON_PRETTY_PRINT);
|
||||||
// var_dump($result);
|
|
||||||
$this->assertNotFalse($result);
|
$this->assertNotFalse($result);
|
||||||
|
|
||||||
// var_dump($result);
|
|
||||||
|
|
||||||
$this->assertStringEndsWith('/'.basename($var['file']), $result['result']);
|
$this->assertStringEndsWith('/'.basename($var['file']), $result['result']);
|
||||||
|
|
||||||
$this->assertNotEmpty($result['preview']);
|
$this->assertNotEmpty($result['preview']);
|
||||||
|
@@ -166,8 +166,6 @@
|
|||||||
$expectedLength = $length;
|
$expectedLength = $length;
|
||||||
$actualLength = strlen($content);
|
$actualLength = strlen($content);
|
||||||
|
|
||||||
//var_dump($key. " = ".$actualLength);
|
|
||||||
|
|
||||||
$this->assertEquals($expectedLength, $actualLength, $key. " is different");
|
$this->assertEquals($expectedLength, $actualLength, $key. " is different");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1062,8 +1062,6 @@ while($row = $sql->fetch())
|
|||||||
$html = "<div><p>My paragraph <b>bold</b></p></div>";
|
$html = "<div><p>My paragraph <b>bold</b></p></div>";
|
||||||
|
|
||||||
$result = $this->tp->htmlwrap($html, 20);
|
$result = $this->tp->htmlwrap($html, 20);
|
||||||
|
|
||||||
var_dump($result);
|
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
public function testToRss()
|
public function testToRss()
|
||||||
@@ -1118,7 +1116,6 @@ while($row = $sql->fetch())
|
|||||||
|
|
||||||
if(!empty($errors))
|
if(!empty($errors))
|
||||||
{
|
{
|
||||||
var_dump($errors);
|
|
||||||
codecept_debug($errors);
|
codecept_debug($errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2201,8 +2198,6 @@ while($row = $sql->fetch())
|
|||||||
{
|
{
|
||||||
$this->assertStringContainsString($str, $result, "Failed on index #".$index);
|
$this->assertStringContainsString($str, $result, "Failed on index #".$index);
|
||||||
}
|
}
|
||||||
//var_dump($result);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2233,7 +2228,6 @@ while($row = $sql->fetch())
|
|||||||
{
|
{
|
||||||
$result = $this->tp->toIcon($var['input'],$var['parms']);
|
$result = $this->tp->toIcon($var['input'],$var['parms']);
|
||||||
$this->assertStringContainsString($var['expected'],$result);
|
$this->assertStringContainsString($var['expected'],$result);
|
||||||
//var_dump($result);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -668,9 +668,6 @@ class e_themeTest extends \Codeception\Test\Unit
|
|||||||
// {
|
// {
|
||||||
// $res = e_theme::loadLayout('full', 'bootstrap4');
|
// $res = e_theme::loadLayout('full', 'bootstrap4');
|
||||||
|
|
||||||
// var_dump($res);
|
|
||||||
|
|
||||||
|
|
||||||
// }
|
// }
|
||||||
/*
|
/*
|
||||||
public function testGetThemesMigrations()
|
public function testGetThemesMigrations()
|
||||||
|
@@ -407,8 +407,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->assertEmpty($result, $folder." > ".$this_addon." returned error #".$result.$errMsg);
|
$this->assertEmpty($result, $folder." > ".$this_addon." returned error #".$result.$errMsg);
|
||||||
// echo $folder;
|
|
||||||
// var_dump($result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user