Skip to content
Snippets Groups Projects
Commit e4f08db8 authored by Florent Torregrosa's avatar Florent Torregrosa Committed by Florent Torregrosa
Browse files

Issue #3417517 by Grimreaper: Enable Gitlab CI + Update README + Coding standards

parent eff79dc7
No related branches found
No related tags found
1 merge request!57Issue #3417517 by Grimreaper: Enable Gitlab CI + Update README + Coding standards
Pipeline #84956 failed
...@@ -2,9 +2,7 @@ ...@@ -2,9 +2,7 @@
namespace Drupal\Tests\ui_patterns\Unit\Template; namespace Drupal\Tests\ui_patterns\Unit\Template;
// cspell:ignore mila
use Drupal\Component\Serialization\Json; use Drupal\Component\Serialization\Json;
use Drupal\Core\File\FileUrlGeneratorInterface;
use Drupal\Core\Render\Markup; use Drupal\Core\Render\Markup;
use Drupal\Core\Template\Attribute; use Drupal\Core\Template\Attribute;
use Drupal\Tests\UnitTestCase; use Drupal\Tests\UnitTestCase;
...@@ -31,14 +29,7 @@ class TwigExtensionTest extends UnitTestCase { ...@@ -31,14 +29,7 @@ class TwigExtensionTest extends UnitTestCase {
*/ */
protected function setUp(): void { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->systemUnderTest = new TwigExtension();
$renderer = $this->createMock('\Drupal\Core\Render\RendererInterface');
$urlGenerator = $this->createMock('\Drupal\Core\Routing\UrlGeneratorInterface');
$themeManager = $this->createMock('\Drupal\Core\Theme\ThemeManagerInterface');
$dateFormatter = $this->createMock('\Drupal\Core\Datetime\DateFormatterInterface');
$fileUrlGenerator = $this->createMock(FileUrlGeneratorInterface::class);
$this->systemUnderTest = new TwigExtension($renderer, $urlGenerator, $themeManager, $dateFormatter, $fileUrlGenerator);
} }
/** /**
......
...@@ -6,10 +6,12 @@ ...@@ -6,10 +6,12 @@
name: variant1 name: variant1
label: variant1 label: variant1
description: ~ description: ~
use: ~
variant2: variant2:
name: variant2 name: variant2
label: variant2 label: variant2
description: ~ description: ~
use: ~
- actual: - actual:
variant1: Variant 1 variant1: Variant 1
variant2: Variant 2 variant2: Variant 2
...@@ -18,10 +20,12 @@ ...@@ -18,10 +20,12 @@
name: variant1 name: variant1
label: Variant 1 label: Variant 1
description: ~ description: ~
use: ~
variant2: variant2:
name: variant2 name: variant2
label: Variant 2 label: Variant 2
description: ~ description: ~
use: ~
- actual: - actual:
variant1: variant1:
label: variant1 label: variant1
...@@ -30,6 +34,7 @@ ...@@ -30,6 +34,7 @@
name: variant1 name: variant1
label: variant1 label: variant1
description: ~ description: ~
use: ~
- actual: - actual:
- name: variant1 - name: variant1
label: Variant 1 label: Variant 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment