Skip to content

Commit 9f296aa

Browse files
committed
Closes #75
1 parent 5801b0c commit 9f296aa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Unit/FunctionTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ public function short_prefix_means_longer_name()
5151
$this->assertEquals('sc-a-testing-7a7ane-sidecar-tests-unit-support-emptytestfunction', $name);
5252
}
5353

54+
/** @test */
55+
public function a_pipe_in_the_app_name_is_ok()
56+
{
57+
config([
58+
'sidecar.app_name' => 'Vriend van de Show | Local'
59+
]);
60+
61+
$function = new EmptyTestFunction;
62+
$name = $function->nameWithPrefix();
63+
64+
$this->assertEquals('sc-vriend-van-de-show-local-55c0-7a7at-support-emptytestfunction', $name);
65+
}
66+
5467
/** @test */
5568
public function changing_the_prefix_changes_the_prefix()
5669
{

0 commit comments

Comments
 (0)