Group talk classes into a modules
directory
This commit is contained in:
parent
5aba021339
commit
2a4247684d
|
@ -12,6 +12,6 @@ sculpin_content_types:
|
|||
permalink: /talks/:basename/
|
||||
|
||||
services:
|
||||
App\Opdavies\TwigExtension\OpdaviesTwigExtension:
|
||||
Modules\Talk\TwigExtension\TalkTwigExtension:
|
||||
tags:
|
||||
- {name: twig.extension}
|
||||
|
|
|
@ -11,11 +11,7 @@
|
|||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "src" }
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"App\\Tests\\": "tests" }
|
||||
"Modules\\": "modules/" }
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^11.1"
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Tests\Opdavies\TwigExtension;
|
||||
namespace Modules\Talk\Tests\TwigExtension;
|
||||
|
||||
use App\Opdavies\TwigExtension\OpdaviesTwigExtension;
|
||||
use Dflydev\DotAccessConfiguration\Configuration;
|
||||
use Modules\Talk\TwigExtension\TalkTwigExtension;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Sculpin\Contrib\ProxySourceCollection\ProxySourceItem;
|
||||
|
||||
class OpdaviesTwigExtensionTest extends TestCase
|
||||
class TalkTwigExtensionTest extends TestCase
|
||||
{
|
||||
private OpdaviesTwigExtension $extension;
|
||||
private TalkTwigExtension $extension;
|
||||
|
||||
public function setUp(): void
|
||||
{
|
||||
$this->extension = new OpdaviesTwigExtension();
|
||||
$this->extension = new TalkTwigExtension();
|
||||
}
|
||||
|
||||
public function testNoPastEvents(): void
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace App\Opdavies\TwigExtension;
|
||||
namespace Modules\Talk\TwigExtension;
|
||||
|
||||
use Sculpin\Contrib\ProxySourceCollection\ProxySourceItem;
|
||||
use Twig\Extension\AbstractExtension;
|
||||
use Twig\TwigFunction;
|
||||
|
||||
class OpdaviesTwigExtension extends AbstractExtension
|
||||
class TalkTwigExtension extends AbstractExtension
|
||||
{
|
||||
public function getFunctions(): array
|
||||
{
|
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" stopOnFailure="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd" cacheDirectory=".phpunit.cache">
|
||||
<testsuites>
|
||||
<testsuite name="unit tests">
|
||||
<directory suffix="Test.php">tests</directory>
|
||||
<testsuite name="Modules">
|
||||
<directory suffix="Test.php">modules</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
|
|
Loading…
Reference in a new issue