-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59b99d7
commit 05211b9
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# SITE_URL=https://example.org | ||
|
||
# If you want to use Torchlight.dev, enter your API token here to automatically enable it | ||
TORCHLIGHT_TOKEN=torch_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
use Illuminate\Contracts\Console\Kernel; | ||
|
||
beforeEach(function () { | ||
$app = require __DIR__.'/../../bootstrap/app.php'; | ||
|
||
$app->make(Kernel::class)->bootstrap(); | ||
|
||
return $app; | ||
}); | ||
|
||
test('check if site url is set', function () { | ||
$assertion = (bool) Hyde::uriPath(); | ||
if (!$assertion) { | ||
$this->addWarning('Did not find a Site URL in .env. Adding it may improve SEO.'); | ||
} else { | ||
$this->assertTrue($assertion); | ||
} | ||
})->group('validators'); |