mirror of
https://github.com/e107inc/e107.git
synced 2025-08-21 13:52:35 +02:00
Updated to Codeception 4.0
This commit is contained in:
@@ -72,7 +72,7 @@ abstract class e_db_abstractTest extends \Codeception\Test\Unit
|
||||
{
|
||||
|
||||
$result = $this->db->getServerInfo();
|
||||
$this->assertNotContains('?',$result);
|
||||
$this->assertStringNotContainsString('?',$result);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -926,10 +926,10 @@ abstract class e_db_abstractTest extends \Codeception\Test\Unit
|
||||
|
||||
$tmp = file_get_contents($result);
|
||||
|
||||
$this->assertNotContains("DROP TABLE IF EXISTS `e107_user`;", $tmp);
|
||||
$this->assertContains("CREATE TABLE `e107_user` (", $tmp);
|
||||
$this->assertContains("INSERT INTO `e107_user` VALUES (1", $tmp);
|
||||
$this->assertContains("CREATE TABLE `e107_core_media_cat`", $tmp);
|
||||
$this->assertStringNotContainsString("DROP TABLE IF EXISTS `e107_user`;", $tmp);
|
||||
$this->assertStringContainsString("CREATE TABLE `e107_user` (", $tmp);
|
||||
$this->assertStringContainsString("INSERT INTO `e107_user` VALUES (1", $tmp);
|
||||
$this->assertStringContainsString("CREATE TABLE `e107_core_media_cat`", $tmp);
|
||||
|
||||
$result = $this->db->backup('*', null, $opts);
|
||||
$size = filesize($result);
|
||||
|
Reference in New Issue
Block a user