-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6695 from getkirby/release/4.4.1
4.4.1
- Loading branch information
Showing
12 changed files
with
55 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
namespace Kirby\Filesystem; | ||
|
||
use Kirby\Cms\App; | ||
use Kirby\TestCase as TestCase; | ||
|
||
/** | ||
|
@@ -291,6 +290,7 @@ public function testGrayscale($prop, $value, $expected) | |
|
||
/** | ||
* @covers ::name | ||
* @covers ::sanitizeName | ||
*/ | ||
public function testName() | ||
{ | ||
|
@@ -300,6 +300,7 @@ public function testName() | |
|
||
/** | ||
* @covers ::name | ||
* @covers ::sanitizeName | ||
*/ | ||
public function testNameSanitization() | ||
{ | ||
|
@@ -309,18 +310,16 @@ public function testNameSanitization() | |
|
||
/** | ||
* @covers ::name | ||
* @covers ::sanitizeName | ||
*/ | ||
public function testNameSanitizationUserLanguageRules() | ||
public function testNameSanitizationWithLanguageRules() | ||
{ | ||
$app = new App([ | ||
'users' => [ | ||
['email' => '[email protected]', 'language' => 'ko'] | ||
] | ||
]); | ||
|
||
$app->impersonate('[email protected]'); | ||
$name = new Filename( | ||
filename: '/var/www/안녕하세요.pdf', | ||
template: '{{ name }}.{{ extension }}', | ||
language: 'ko' | ||
); | ||
|
||
$name = new Filename('/var/www/안녕하세요.pdf', '{{ name }}.{{ extension }}'); | ||
$this->assertSame('annyeonghaseyo', $name->name()); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters