Skip to content

Commit

Permalink
Fixing again the tests for the middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Jan 28, 2017
1 parent a830fda commit 0551e6b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/Http/Middleware/DisqusMiddlewareTest.php
Expand Up @@ -20,23 +20,21 @@ public function it_can_set_page_url_and_page_id_via_middleware()
$disqus = disqus();

// Disabled
$response = $this->get('/');
$this->get('/');

$this->assertSame(200, $response->getStatusCode());
$this->assertEmpty($disqus->pageUrl());
$this->assertEmpty($disqus->pageId());

// Enabled
$disqus->enable();
$response = $this->get('/');

$this->assertSame(200, $response->getStatusCode());
$this->get('/');

$this->assertSame('http://localhost', $disqus->pageUrl());
$this->assertSame('base.home', $disqus->pageId());

$response = $this->get('post-one');
$this->get('post-one');

$this->assertSame(200, $response->getStatusCode());
$this->assertSame('http://localhost/post-one', $disqus->pageUrl());
$this->assertSame('base.post-one', $disqus->pageId());
}
Expand Down

0 comments on commit 0551e6b

Please sign in to comment.