Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ui_patterns
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
ui_patterns
Commits
e4f08db8
Commit
e4f08db8
authored
1 year ago
by
Florent Torregrosa
Committed by
Florent Torregrosa
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3417517
by Grimreaper: Enable Gitlab CI + Update README + Coding standards
parent
eff79dc7
No related branches found
No related tags found
1 merge request
!57
Issue #3417517 by Grimreaper: Enable Gitlab CI + Update README + Coding standards
Pipeline
#84956
failed
1 year ago
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/src/Unit/Template/TwigExtensionTest.php
+1
-10
1 addition, 10 deletions
tests/src/Unit/Template/TwigExtensionTest.php
tests/src/fixtures/definition/variants_processing.yml
+5
-0
5 additions, 0 deletions
tests/src/fixtures/definition/variants_processing.yml
with
6 additions
and
10 deletions
tests/src/Unit/Template/TwigExtensionTest.php
+
1
−
10
View file @
e4f08db8
...
@@ -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
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
tests/src/fixtures/definition/variants_processing.yml
+
5
−
0
View file @
e4f08db8
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment