mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 11:10:57 +01:00
24 lines
524 B
PHP
24 lines
524 B
PHP
<?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")'));
|
|
}
|
|
} |