Skip to content

Commit

Permalink
Merge branch 'b-7.3.x' into b-8.0.x
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG-2.x.md
#	tests/Integration/TwigEngine/TemplateChain/ModulesTemplateChainTest.php
#	tests/Integration/TwigEngine/TemplateChainSorting/ModulesTemplateChainSortingTest.php
#	tests/Integration/TwigEngine/ThemeInheritance/ShopTemplateDirectoryResolvingTest.php
#	tests/Unit/Extensions/Filters/DateFormatExtensionTest.php
  • Loading branch information
AshrafOxid committed Feb 14, 2025
2 parents 3dbb3de + 6c8fc9e commit a0252f0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
3 changes: 3 additions & 0 deletions src/Extensions/Filters/DateFormatExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;

/**
* @deprecated in next major version, use twig date filter
*/
class DateFormatExtension extends AbstractExtension
{
public function __construct(private DateFormatHelper $dateFormatHelper)
Expand Down
18 changes: 8 additions & 10 deletions tests/Unit/Loader/CmsLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,14 @@ public function setUp(): void

$contentFactoryMock
->method('getContent')
->will(
$this->returnValueMap(
[
['ident', 'valid', $validContentMock],
['oxid', 'english', $englishContentMock],
['ident', 'field', $fieldContentMock],
['oxid', 'notFresh', $notFreshContentMock],
['ident', 'notValid', $notValidContentMock]
]
)
->willReturnMap(
[
['ident', 'valid', $validContentMock],
['oxid', 'english', $englishContentMock],
['ident', 'field', $fieldContentMock],
['oxid', 'notFresh', $notFreshContentMock],
['ident', 'notValid', $notValidContentMock]
]
);

/** @var ContentFactory $contentFactoryMock */
Expand Down

0 comments on commit a0252f0

Please sign in to comment.