Can we assume that the server is 127.0.0.1?
This commit is contained in:
parent
8a700a34fc
commit
4b6b283f02
2 changed files with 28 additions and 1 deletions
|
@ -18,7 +18,7 @@ before_script:
|
|||
# (permissions of 777 are bad, but it definitely works)
|
||||
- chmod -R 777 .
|
||||
|
||||
script: php tests/simple_test.php -d $DB -u http://127.0.0.1/
|
||||
script: php tests/test_install.php -d $DB
|
||||
|
||||
# configure notifications (email, IRC, campfire etc)
|
||||
#notifications:
|
||||
|
|
27
tests/test_install.php
Normal file
27
tests/test_install.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
require_once('lib/simpletest/autorun.php');
|
||||
require_once('lib/simpletest/unit_tester.php');
|
||||
require_once('lib/simpletest/reporter.php');
|
||||
|
||||
class ShimmieSimpleTestCase extends WebTestCase {
|
||||
var $options;
|
||||
var $database;
|
||||
|
||||
function ShimmieTestCase() {
|
||||
$this->options = getopt("d:");
|
||||
$this->database = $this->options["d"];
|
||||
}
|
||||
|
||||
function testOptions() {
|
||||
print_r($this->options);
|
||||
$this->assertNotNull($this->database);
|
||||
}
|
||||
|
||||
function installShimmie()
|
||||
{
|
||||
$this->get('http://127.0.0.1/');
|
||||
$this->assertResponse(200);
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue