Skip to content

Commit 38a5897

Browse files
committed
Remove tests for non-standard route_relative helper
1 parent a8ced5c commit 38a5897

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

tests/Sniffs/NamingConventions/CamelCaseRouteNameSniffTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ public function it_reports_about_kebab_case_route_name(): void
2020
{
2121
$report = self::checkFile(__DIR__.'/data/routeNameUsesKebabCase.php', [], [], [__DIR__.'/data/routeNameUsesKebabCase.php']);
2222

23-
self::assertSniffError($report, 3, CamelCaseRouteNameSniff::CODE_NOT_CAMEL_CASE_ROUTE_NAME);
23+
self::assertSniffError($report, 2, CamelCaseRouteNameSniff::CODE_NOT_CAMEL_CASE_ROUTE_NAME);
2424
}
2525

2626
/** @test */
2727
public function it_reports_about_snake_case_route_name(): void
2828
{
29-
$report = self::checkFile(__DIR__.'/data/routeNameUsesSnakeCase.php', [], [], ['--standard=IxDFCodingStandard']);
29+
$report = self::checkFile(__DIR__.'/data/routeNameUsesSnakeCase.php', [], [CamelCaseRouteNameSniff::CODE_NOT_CAMEL_CASE_ROUTE_NAME], ['--standard=IxDFCodingStandard']);
3030

31-
self::assertSniffError($report, 3, CamelCaseRouteNameSniff::CODE_NOT_CAMEL_CASE_ROUTE_NAME);
31+
self::assertSniffError($report, 2, CamelCaseRouteNameSniff::CODE_NOT_CAMEL_CASE_ROUTE_NAME);
3232
}
3333
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php declare(strict_types=1);
22

33
route('contactLists.index');
4-
route_relative('contactLists.index');
54

65
$resourceName = 'contactLists';
76
route("myPrivateProfile.$resourceName.show");
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php declare(strict_types=1);
22

33
route('contact-lists.index');
4-
route_relative('contact-lists.index');
54

65
$resourceName = 'contact-lists';
76
route("my-private-profile.$resourceName.show");
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php declare(strict_types=1);
22

33
route('contact_lists.index');
4-
route_relative('contact_lists.index');
54

65
$resourceName = 'contact_lists';
76
route("my_private_profile.$resourceName.show");

0 commit comments

Comments
 (0)