Skip to content

Commit 8dde14f

Browse files
committed
tests: updated for last latte
1 parent 9013432 commit 8dde14f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"nette/forms": "^3.0",
3232
"nette/robot-loader": "^3.2",
3333
"nette/security": "^3.0",
34-
"latte/latte": "^2.10.2 || ^3.0.1",
34+
"latte/latte": "^2.10.2 || ^3.0.3",
3535
"tracy/tracy": "^2.6",
3636
"mockery/mockery": "^1.0",
3737
"phpstan/phpstan-nette": "^0.12"

tests/Bridges.Latte3/n-snippet.2.phpt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,35 @@ $latte->addExtension(new Nette\Bridges\ApplicationLatte\UIExtension(null));
2020
Assert::exception(
2121
fn() => $latte->compile('<p n:snippet="abc" n:foreach="$items as $item">hello</p>'),
2222
Latte\CompileException::class,
23-
'Combination of n:snippet with n:foreach is invalid, use n:inner-foreach (at column 4)',
23+
'Combination of n:snippet with n:foreach is invalid, use n:inner-foreach (on line 1 at column 4)',
2424
);
2525

2626
Assert::exception(
2727
fn() => $latte->compile('<p n:snippet="abc" id="a">hello</p>'),
2828
Latte\CompileException::class,
29-
'Cannot combine HTML attribute id with n:snippet (at column 4)',
29+
'Cannot combine HTML attribute id with n:snippet (on line 1 at column 4)',
3030
);
3131

3232
Assert::exception(
3333
fn() => $latte->compile('<p n:snippet="abc" n:ifcontent>hello</p>'),
3434
Latte\CompileException::class,
35-
'Cannot combine n:ifcontent with n:snippet (at column 4)',
35+
'Cannot combine n:ifcontent with n:snippet (on line 1 at column 4)',
3636
);
3737

3838
Assert::exception(
3939
fn() => $latte->compile('<div n:inner-snippet="inner"></div>'),
4040
Latte\CompileException::class,
41-
'Use n:snippet instead of n:inner-snippet (at column 6)',
41+
'Use n:snippet instead of n:inner-snippet (on line 1 at column 6)',
4242
);
4343

4444
Assert::exception(
4545
fn() => $latte->renderToString('{snippet foo} {include parent} {/snippet}'),
4646
Latte\CompileException::class,
47-
'Cannot include parent block outside of any block (at column 15)',
47+
'Cannot include parent block outside of any block (on line 1 at column 15)',
4848
);
4949

5050
Assert::exception(
5151
fn() => $latte->renderToString('{snippet foo} {include this} {/snippet}'),
5252
Latte\CompileException::class,
53-
'Cannot include this block outside of any block (at column 15)',
53+
'Cannot include this block outside of any block (on line 1 at column 15)',
5454
);

tests/Bridges.Latte3/renderSnippets5.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $presenter->redrawControl('foo');
4848
Assert::exception(
4949
fn() => $presenter->render('<div id="x" n:snippet=foo>Hello</div>'),
5050
Latte\CompileException::class,
51-
'Cannot combine HTML attribute id with n:snippet (at column 13)',
51+
'Cannot combine HTML attribute id with n:snippet (on line 1 at column 13)',
5252
);
5353

5454

@@ -60,5 +60,5 @@ $presenter->redrawControl('foo');
6060
Assert::exception(
6161
fn() => $presenter->render('<div n:snippet="foo"><div id="x" n:snippet="$foo">Hello</div></div>'),
6262
Latte\CompileException::class,
63-
'Cannot combine HTML attribute id with n:snippet (at column 34)',
63+
'Cannot combine HTML attribute id with n:snippet (on line 1 at column 34)',
6464
);

tests/Bridges.Latte3/renderSnippets6.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ $presenter->injectPrimary(null, null, null, new Http\Request(new Http\UrlScript(
4343
Assert::exception(
4444
fn() => $presenter->render('<div n:snippet=test data-snippet>hello</div>'),
4545
Latte\CompileException::class,
46-
'Cannot combine HTML attribute data-snippet with n:snippet (at column 6)',
46+
'Cannot combine HTML attribute data-snippet with n:snippet (on line 1 at column 6)',
4747
);

0 commit comments

Comments
 (0)