Skip to content

Commit

Permalink
First functional test for interface
Browse files Browse the repository at this point in the history
  • Loading branch information
klaussilveira committed Jul 25, 2012
1 parent 611b1ab commit 11b869f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/InterfaceTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

require 'vendor/autoload.php';

use Silex\WebTestCase;

class InterfaceTest extends WebTestCase
{
public function createApplication()
{
$app = require 'index.php';
$app['debug'] = true;
return $app;
}

public function testInitialPage()
{
$client = $this->createClient();
$crawler = $client->request('GET', '/');

$this->assertTrue($client->getResponse()->isOk());
$this->assertCount(1, $crawler->filter('title:contains("Gitlist")'));
}
}

0 comments on commit 11b869f

Please sign in to comment.