diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index a689caa..d2f2ad8 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,8 +4,9 @@
-
+
+
@@ -153,26 +154,27 @@
- {
+ "keyToString": {
+ "Composer Script.Ci.executor": "Run",
+ "Composer Script.cs-fix.executor": "Run",
+ "Composer Script.inspect.executor": "Run",
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
+ "RunOnceActivity.ShowReadmeOnStart": "true",
+ "WebServerToolWindowFactoryState": "false",
+ "credentialsType com.jetbrains.php.remote.interpreter.ui.PhpCreateRemoteSdkForm": "Docker",
+ "credentialsType com.jetbrains.php.remote.interpreter.ui.PhpInplaceEditRemoteSdkForm": "Docker",
+ "git-widget-placeholder": "main",
+ "last_opened_file_path": "/mnt/F24AE3254AE2E4F7/Lavori/codeigniter4-datatables/vendor/autoload.php",
+ "node.js.detected.package.eslint": "true",
+ "node.js.detected.package.tslint": "true",
+ "node.js.selected.package.eslint": "(autodetect)",
+ "node.js.selected.package.tslint": "(autodetect)",
+ "nodejs_package_manager_path": "npm",
+ "settings.editor.selected.configurable": "project.scopes",
+ "vue.rearranger.settings.migration": "true"
}
-}]]>
+}
@@ -200,9 +202,9 @@
-
+
-
+
@@ -216,27 +218,27 @@
+
-
+
-
-
+
@@ -279,6 +281,7 @@
+
@@ -448,7 +451,15 @@
1710499266001
-
+
+
+ 1710499951354
+
+
+
+ 1710499951354
+
+
@@ -498,7 +509,8 @@
-
+
+
diff --git a/tests/Javascript/DataTablesScriptTest.php b/tests/Javascript/DataTablesScriptTest.php
index 6eeac8d..21212e7 100644
--- a/tests/Javascript/DataTablesScriptTest.php
+++ b/tests/Javascript/DataTablesScriptTest.php
@@ -46,4 +46,35 @@ public function testGetDocumentReady(): void
$this->configuration->setServerSide(false);
$this->assertStringContainsString('var', $this->dataTablesScript->getDocumentReady('test', $this->configuration));
}
+
+ public function testGetExternalLibraries1(): void
+ {
+ $this->dataTablesScript = new DataTablesScript();
+
+ $css = [];
+ $javascript = [];
+
+ $replace = ['css' => false, 'js' => false];
+ ob_start();
+ $this->dataTablesScript->getExternalLibraries($css, $javascript, $replace);
+ $response = ob_get_contents();
+ ob_end_clean();
+ echo $response;
+ $this->expectOutputString($response);
+ }
+
+ public function testGetExternalLibraries2(): void
+ {
+ $this->dataTablesScript = new DataTablesScript();
+
+ $css = ['test.js'];
+ $javascript = ['test.css'];
+ $replace = ['css' => true, 'js' => true];
+ ob_start();
+ $this->dataTablesScript->getExternalLibraries($css, $javascript, $replace);
+ $response = ob_get_contents();
+ ob_end_clean();
+ echo $response;
+ $this->expectOutputString($response);
+ }
}