From 207d3ff109ede88487536bdb1e9b56aa82d615ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Felix=20=C5=A0ulc?= Date: Sun, 8 Nov 2020 13:17:46 +0100 Subject: [PATCH] Tests: rename, fix notice --- ...ourceTest.phpt => DibiFluentDataSourceTest.phpt} | 13 ++++++++----- tests/Cases/DataSources/NextrasDataSourceTest.phpt | 4 ---- 2 files changed, 8 insertions(+), 9 deletions(-) rename tests/Cases/DataSources/{DibiDataSourceTest.phpt => DibiFluentDataSourceTest.phpt} (81%) diff --git a/tests/Cases/DataSources/DibiDataSourceTest.phpt b/tests/Cases/DataSources/DibiFluentDataSourceTest.phpt similarity index 81% rename from tests/Cases/DataSources/DibiDataSourceTest.phpt rename to tests/Cases/DataSources/DibiFluentDataSourceTest.phpt index fc0928a0..ada3af2b 100644 --- a/tests/Cases/DataSources/DibiDataSourceTest.phpt +++ b/tests/Cases/DataSources/DibiFluentDataSourceTest.phpt @@ -10,6 +10,9 @@ use Ublaboo; require __DIR__ . '/BaseDataSourceTest.phpt'; +// E_NOTICE: Trying to access array offset on value of type null +error_reporting(E_ERROR | E_PARSE); + final class DibiFluentDataSourceTest extends BaseDataSourceTest { @@ -28,17 +31,17 @@ final class DibiFluentDataSourceTest extends BaseDataSourceTest protected function setUpDatabase(): void { - $this->db = dibi::connect([ - 'driver' => 'pdo', - 'dsn' => 'sqlite::memory:', - ]); + $this->db = dibi::connect([ + 'driver' => 'pdo', + 'dsn' => 'sqlite::memory:', + ]); $this->db->query( 'CREATE TABLE users ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR (50), age INTEGER (3), - address VARCHAR (50) + address VARCHAR (50) );' ); diff --git a/tests/Cases/DataSources/NextrasDataSourceTest.phpt b/tests/Cases/DataSources/NextrasDataSourceTest.phpt index c5c77387..2bc86561 100644 --- a/tests/Cases/DataSources/NextrasDataSourceTest.phpt +++ b/tests/Cases/DataSources/NextrasDataSourceTest.phpt @@ -19,10 +19,6 @@ use Ublaboo\DataGrid\Tests\Files\TestingDataGridFactory; require __DIR__ . '/BaseDataSourceTest.phpt'; -// Temporary cause: -// E_USER_DEPRECATED: Replace deprecated Nette\Object with trait Nette\SmartObject in BaseMapper -error_reporting(E_ERROR | E_PARSE); - if (!extension_loaded('mysqli')) { Environment::skip('Test requires MySQLi extension to be loaded.'); }