mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-09-02 02:12:37 +02:00
Fixed some tests
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
<div class="text-white text-sm tracking-tight mb-2 md:my-2">
|
||||
<a href="/" class="hover:underline">Home</a>
|
||||
|
||||
{% for name, path in breadcrumbs(relative_path) %}
|
||||
/ <a href="{{ path }}" class="hover:underline">{{ name }}</a>
|
||||
{% endfor %}
|
||||
{% if relative_path %}
|
||||
{% for name, path in breadcrumbs(relative_path) %}
|
||||
/ <a href="{{ path }}" class="hover:underline">{{ name }}</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<form action="." method="get" id="search" class="group relative block w-full bg-blue-700 rounded-full shadow-inner md:w-4/12 md:-my-2">
|
||||
|
@@ -24,9 +24,6 @@ class TestCase extends PHPUnitTestCase
|
||||
*/
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->container = new Container();
|
||||
$this->container->set('base_path', $this->testFilesPath);
|
||||
|
||||
$this->config = new Config([
|
||||
'app' => [
|
||||
'sort_order' => 'type',
|
||||
@@ -41,6 +38,10 @@ class TestCase extends PHPUnitTestCase
|
||||
'cache' => false
|
||||
],
|
||||
]);
|
||||
|
||||
$this->container = new Container();
|
||||
$this->container->set('base_path', $this->testFilesPath);
|
||||
$this->container->set(Config::class, $this->config);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user