Skip to content

Commit 6900102

Browse files
committed
Update snapshots, update phpunit.xml
1 parent de83d6f commit 6900102

File tree

42 files changed

+68
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+68
-67
lines changed

phpunit.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
35
backupGlobals="false"
46
backupStaticAttributes="false"
57
beStrictAboutChangesToGlobalState="true"
@@ -13,8 +15,7 @@
1315
convertWarningsToExceptions="true"
1416
processIsolation="false"
1517
stopOnFailure="false"
16-
verbose="true"
17-
>
18+
verbose="true">
1819

1920
<!-- List of files with tests inside -->
2021
<testsuites>
@@ -24,10 +25,10 @@
2425
</testsuites>
2526

2627
<!-- List of source files for code coverage checker -->
27-
<filter>
28-
<whitelist processUncoveredFilesFromWhitelist="true">
28+
<coverage processUncoveredFiles="true">
29+
<include>
2930
<directory suffix=".php">src/</directory>
30-
</whitelist>
31-
</filter>
31+
</include>
32+
</coverage>
3233

3334
</phpunit>

tests/FacadePhpDocTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testFullyQualifiedClassNames($class, $line)
4343
{
4444
// IDE Helper (v2.4.3) doesn't rewrite class names to FQCNs, so make sure only
4545
// fully qualified class names and built-in types are used in the Manager class
46-
$this->assertRegExp(
46+
$this->assertMatchesRegularExpression(
4747
'/^(\\\\.*|array|bool|callable|int|mixed|null|string|void)$/',
4848
$class,
4949
"Must use fully qualified class names in BreadcrumbsManger PhpDoc: $line"

tests/__snapshots__/IgnitionTest__testDuplicateBreadcrumbSolution with data set Multiple config files__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove the duplicate breadcrumb

tests/__snapshots__/IgnitionTest__testDuplicateBreadcrumbSolution with data set Multiple config files__2.php

Lines changed: 0 additions & 4 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Look in the following files for multiple breadcrumbs named `duplicate`:
2+
3+
- `breadcrumbs/file1.php`
4+
-`breadcrumbs/file2.php`

tests/__snapshots__/IgnitionTest__testDuplicateBreadcrumbSolution with data set Single config file__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove the duplicate breadcrumb

tests/__snapshots__/IgnitionTest__testDuplicateBreadcrumbSolution with data set Single config file__2.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Look in `routes/breadcrumbs.php` for multiple breadcrumbs named `duplicate`.

tests/__snapshots__/IgnitionTest__testInvalidBreadcrumbSolution with data set Multiple config files__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add this to one of the files defined in config/breadcrumbs.php

tests/__snapshots__/IgnitionTest__testInvalidBreadcrumbSolution with data set Multiple config files__2.php

Lines changed: 0 additions & 6 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
```php
3+
Breadcrumbs::for('invalid', function ($trail) {
4+
$trail->push('Title Here', url('/'));
5+
});
6+
```

tests/__snapshots__/IgnitionTest__testInvalidBreadcrumbSolution with data set Single config file__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add this to routes/breadcrumbs.php

tests/__snapshots__/IgnitionTest__testInvalidBreadcrumbSolution with data set Single config file__2.php

Lines changed: 0 additions & 6 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
```php
3+
Breadcrumbs::for('invalid', function ($trail) {
4+
$trail->push('Title Here', url('/'));
5+
});
6+
```

tests/__snapshots__/IgnitionTest__testMissingRouteBoundBreadcrumbSolution with data set Multiple config files__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add this to one of the files defined in config/breadcrumbs.php

tests/__snapshots__/IgnitionTest__testMissingRouteBoundBreadcrumbSolution with data set Multiple config files__2.php

Lines changed: 0 additions & 6 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
```php
3+
Breadcrumbs::for('home', function ($trail) {
4+
$trail->push('Title Here', route('home'));
5+
});
6+
```

tests/__snapshots__/IgnitionTest__testMissingRouteBoundBreadcrumbSolution with data set Single config file__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add this to routes/breadcrumbs.php

tests/__snapshots__/IgnitionTest__testMissingRouteBoundBreadcrumbSolution with data set Single config file__2.php

Lines changed: 0 additions & 6 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
```php
3+
Breadcrumbs::for('home', function ($trail) {
4+
$trail->push('Title Here', route('home'));
5+
});
6+
```

tests/__snapshots__/IgnitionTest__testUnnamedClosureRouteSolution__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Give the route a name

tests/__snapshots__/IgnitionTest__testUnnamedClosureRouteSolution__2.php

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
For example:
2+
3+
4+
```php
5+
Route::get('blog', function() {
6+
...
7+
})->name('sample-name');
8+
```

tests/__snapshots__/IgnitionTest__testUnnamedControllerRouteSolution__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Give the route a name

tests/__snapshots__/IgnitionTest__testUnnamedControllerRouteSolution__2.php

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
For example:
2+
3+
4+
```php
5+
Route::get('posts/{post}', 'PostController@edit')->name('sample-name');
6+
```

tests/__snapshots__/IgnitionTest__testUnnamedViewRouteSolution__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Give the route a name

tests/__snapshots__/IgnitionTest__testUnnamedViewRouteSolution__2.php

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
For example:
2+
3+
4+
```php
5+
Route::view('blog', 'page')->name('sample-name');
6+
```

tests/__snapshots__/IgnitionTest__testViewNotSetSolution__1.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set a view for Laravel Breadcrumbs

tests/__snapshots__/IgnitionTest__testViewNotSetSolution__2.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please check `config/breadcrumbs.php` for a valid `'view'` (e.g. `'breadcrumbs::bootstrap4'`)

0 commit comments

Comments
 (0)