Skip to content

Commit

Permalink
Tests: rename, fix notice
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x authored and paveljanda committed Nov 13, 2020
1 parent 73d7182 commit 207d3ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand All @@ -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)
);'
);

Expand Down
4 changes: 0 additions & 4 deletions tests/Cases/DataSources/NextrasDataSourceTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down

0 comments on commit 207d3ff

Please sign in to comment.