1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-08 06:06:45 +02:00

feat(tests): add tests for Shortcode getCacheID() method #477

This commit is contained in:
Awilum
2020-10-20 00:38:48 +03:00
parent f763562634
commit c2218e7ab9

View File

@@ -34,3 +34,8 @@ test('test process() method', function () {
$this->assertEquals('Zed', flextype('shortcode')->process('[zed]'));
$this->assertEquals('fòôBàřZed', flextype('shortcode')->process('fòôBàř[zed]'));
});
test('test getCacheID() method', function () {
$this->assertNotEquals(flextype('shortcode')->getCacheID('fòôBàř[bar]'),
flextype('shortcode')->getCacheID('fòôBàř[foo]'));
});