Skip to content

Commit

Permalink
tests: Fix compatibility with latest latte
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Oct 29, 2021
1 parent 91e4d41 commit 44588b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/FileUploadControl/FileUploadControlRenderingTest.phpt
Expand Up @@ -13,6 +13,7 @@ use NepadaTests\FileUploadControl\Storage\InMemoryStorageManager;
use NepadaTests\TestCase;
use Nette\Application\UI\Form;
use Nette\Utils\FileSystem;
use Nette\Utils\Strings;
use Tester\Assert;

require_once __DIR__ . '/../bootstrap.php';
Expand Down Expand Up @@ -45,7 +46,7 @@ class FileUploadControlRenderingTest extends TestCase

Assert::same(
trim(FileSystem::read(__DIR__ . '/Fixtures/FileUploadControl.files.html')),
trim((string) $control->getControl()),
Strings::replace(trim((string) $control->getControl()), '~{~', '{'), // escaping changed in latte 2.10.5
);
}

Expand Down

0 comments on commit 44588b1

Please sign in to comment.