Initial commit: CloudOps infrastructure platform
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
--TEST--
|
||||
compile LESS
|
||||
--TEMPLATE--
|
||||
{{ less|less_compile }}
|
||||
--DATA--
|
||||
return ['less' => "@primarycolor: #FF7F50;@color:#800080;h2{color: @primarycolor;}h3{color: @color;}"]
|
||||
--EXPECT--
|
||||
h2 {
|
||||
color: #FF7F50;
|
||||
}
|
||||
h3 {
|
||||
color: #800080;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MauticPlugin\MauticFocusBundle\Tests\Twig;
|
||||
|
||||
use MauticPlugin\MauticFocusBundle\Twig\Extension\FocusBundleExtension;
|
||||
use Twig\Extension\ExtensionInterface;
|
||||
|
||||
/**
|
||||
* @see https://twig.symfony.com/doc/2.x/advanced.html#functional-tests
|
||||
*/
|
||||
class TwigIntegrationTest extends \Twig\Test\IntegrationTestCase
|
||||
{
|
||||
/**
|
||||
* @return ExtensionInterface[]
|
||||
*/
|
||||
public function getExtensions(): array
|
||||
{
|
||||
return [
|
||||
new FocusBundleExtension(),
|
||||
];
|
||||
}
|
||||
|
||||
public static function getFixturesDirectory(): string
|
||||
{
|
||||
return __DIR__.'/Fixtures/';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user