Skip to content

Commit 8255e5b

Browse files
author
Richard McDaniel
committed
fix
1 parent 2dd6eea commit 8255e5b

9 files changed

+50
-50
lines changed

.travis.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ before_script:
99
- sudo a2enmod rewrite actions fastcgi alias
1010
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
1111
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
12-
- sudo cp -f tests/travis-ci-apache /etc/apache2/sites-available/default
12+
- sudo cp -f build/travis-ci-apache /etc/apache2/sites-available/default
1313
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
1414
- sudo service apache2 restart
1515
- mysql -e 'create database acs;'
1616
- php api/index.php cli install
1717
- php api/index.php cli add administrator [email protected] password123
18-
- cd tests && composer install && cd ..
19-
- patch -p0 < tests/sauce.patch
18+
- composer install
19+
- patch -p0 < build/sauce.patch
2020

2121
script:
22-
- tests/vendor/bin/phpunit --configuration `pwd`/tests/phpunit.xml --coverage-clover build/logs/clover.xml
23-
- tests/vendor/bin/paratest -p 8 -f --phpunit=tests/vendor/bin/phpunit tests/selenium.php
22+
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
23+
- vendor/bin/paratest -p 8 -f --phpunit=vendor/bin/phpunit tests/SeleniumTest.php
2424

25-
after_script: tests/vendor/bin/test-reporter
25+
after_script: vendor/bin/test-reporter
2626

2727
env:
2828
global:
File renamed without changes.

tests/sauce.patch renamed to build/sauce.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- tests/vendor/sauce/sausage/src/Sauce/Sausage/SauceAPI.php 2015-05-15 19:10:35.163364000 -0400
2-
+++ tests/vendor/sauce/sausage/src/Sauce/Sausage/SauceAPI.php 2015-05-15 19:10:33.203364000 -0400
1+
--- vendor/sauce/sausage/src/Sauce/Sausage/SauceAPI.php 2015-05-15 19:10:35.163364000 -0400
2+
+++ vendor/sauce/sausage/src/Sauce/Sausage/SauceAPI.php 2015-05-15 19:10:33.203364000 -0400
33
@@ -78,7 +78,7 @@
44
$response = curl_exec($ch);
55

File renamed without changes.
File renamed without changes.

tests/phpunit.xml renamed to phpunit.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
syntaxCheck="false"
1313
cacheTokens="true"
1414
verbose="false"
15-
bootstrap="bootstrap.php">
15+
bootstrap="build/bootstrap.php">
1616
<testsuites>
1717
<testsuite name="unit">
18-
<file>unit.php</file>
18+
<file>tests/UnitTest.php</file>
1919
</testsuite>
2020
</testsuites>
2121
</phpunit>

tests/SeleniumTest.php

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
3+
// require_once 'vendor/autoload.php';
4+
5+
// class Run extends Sauce\Sausage\WebDriverTestCase
6+
// {
7+
8+
// protected $start_url = 'http://localhost';
9+
10+
// public static $browsers = array(
11+
// array(
12+
// 'browserName' => 'chrome',
13+
// 'desiredCapabilities' => array(
14+
// 'platform' => 'Linux'
15+
// )
16+
// )
17+
// );
18+
19+
// public function testTitle()
20+
// {
21+
// $this->assertContains("AngularJS CodeIgniter Seed", $this->title());
22+
// }
23+
24+
25+
// public function testUrl()
26+
// {
27+
// $this->assertContains("http://localhost/#/home", $this->url());
28+
// }
29+
30+
// public function testLogin()
31+
// {
32+
// $this->url('http://localhost/#/login');
33+
// $this->assertTextNotPresent("Logout");
34+
// $this->byName('email')->value('[email protected]');
35+
// $this->byName('password')->value('password123');
36+
// $this->byName('login')->submit();
37+
// $this->assertTextPresent("Logout");
38+
// }
39+
40+
// }
File renamed without changes.

tests/selenium.php

-40
This file was deleted.

0 commit comments

Comments
 (0)