diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index ddf38c6..ea1eb8b 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -278,7 +278,7 @@
-
+
@@ -464,7 +464,15 @@
1710507273755
-
+
+
+ 1710508845704
+
+
+
+ 1710508845704
+
+
diff --git a/tests/DataTablesTest.php b/tests/DataTablesTest.php
index ad607c0..b63bd81 100644
--- a/tests/DataTablesTest.php
+++ b/tests/DataTablesTest.php
@@ -3,6 +3,7 @@
namespace Tests;
use atsanna\DataTables\DataTables;
+use CodeIgniter\Shield\Models\UserModel;
use Tests\Support\TestCase;
/**
@@ -20,11 +21,17 @@ protected function setUp(): void
$this->dataTables->boot();
}
- public function testBoot(): void
+ public function testBoot1(): void
{
$this->assertIsObject($this->dataTables->boot());
}
+ public function testBoot2(): void
+ {
+ $model = new UserModel();
+ $this->assertIsObject($this->dataTables->boot($model));
+ }
+
public function testTable(): void
{
$this->assertIsObject($this->dataTables->table());
diff --git a/tests/Settings/ColumnTest.php b/tests/Settings/ColumnTest.php
index 89b3b1c..c9460a1 100644
--- a/tests/Settings/ColumnTest.php
+++ b/tests/Settings/ColumnTest.php
@@ -16,7 +16,12 @@ protected function setUp(): void
{
parent::setUp();
- $this->column = new Column();
+ $config['name'] = 'name';
+ $config['searchable'] = 'true';
+ $config['visible'] = 'true';
+ $config['title'] = 'title';
+
+ $this->column = new Column($config);
}
public function testSetSearchable(): void