Fixed some tests

This commit is contained in:
Chris Kankiewicz
2020-01-15 12:37:19 -07:00
parent b418bee7ae
commit e11bacba58
2 changed files with 9 additions and 6 deletions

View File

@@ -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">

View File

@@ -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);
}
/**