Skip to content

Commit

Permalink
Merge pull request #357 from hydephp/analysis-0gN9lm
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
caendesilva authored May 15, 2022
2 parents 7db6a59 + 972bd8b commit b1f8216
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions tests/Unit/TestBuildStaticSiteCommandFlagToEnablePrettyUrls.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Tests\Unit;

use Hyde\Framework\Hyde;
use Tests\TestCase;

/**
Expand All @@ -11,18 +10,18 @@
class TestBuildStaticSiteCommandFlagToEnablePrettyUrls extends TestCase
{
public function test_pretty_urls_can_be_enabled_with_flag()
{
{
config(['hyde.prettyUrls' => false]);

$this->artisan('build --pretty-urls')
->expectsOutput('Generating site with pretty URLs')
->assertExitCode(0);
$this->artisan('build --pretty-urls')
->expectsOutput('Generating site with pretty URLs')
->assertExitCode(0);

$this->assertTrue(config('hyde.prettyUrls', false));
}
$this->assertTrue(config('hyde.prettyUrls', false));
}

public function test_config_change_is_not_persisted()
{
$this->assertFalse(config('hyde.prettyUrls', false));
}
public function test_config_change_is_not_persisted()
{
$this->assertFalse(config('hyde.prettyUrls', false));
}
}

0 comments on commit b1f8216

Please sign in to comment.