mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge branch '1.5' into 1
This commit is contained in:
commit
8584040e4d
26
.travis.yml
26
.travis.yml
@ -2,26 +2,18 @@
|
|||||||
|
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
sudo: false
|
dist: trusty
|
||||||
|
|
||||||
dist: precise
|
|
||||||
|
|
||||||
php:
|
|
||||||
- 5.4
|
|
||||||
|
|
||||||
env:
|
|
||||||
- DB=MYSQL CORE_RELEASE=3.5
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- php: 5.3
|
- php: '7.1'
|
||||||
env: DB=PGSQL CORE_RELEASE=3.4
|
env: DB=PGSQL CORE_RELEASE=3.7
|
||||||
- php: 5.6
|
- php: '7.1'
|
||||||
env: DB=MYSQL CORE_RELEASE=3.6
|
env: DB=MYSQL CORE_RELEASE=3.7
|
||||||
- php: 5.4
|
- php: '7.2'
|
||||||
env: DB=MYSQL CORE_RELEASE=3.6
|
env: DB=MYSQL CORE_RELEASE=3.7
|
||||||
- php: 7.1
|
- php: '7.3'
|
||||||
env: DB=MYSQL CORE_RELEASE=3.6
|
env: DB=MYSQL CORE_RELEASE=3.7
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- composer self-update || true
|
- composer self-update || true
|
||||||
|
@ -15,15 +15,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"silverstripe/framework": "~3.2",
|
"silverstripe/framework": "~3.7",
|
||||||
"silverstripe/cms": "~3.2"
|
"silverstripe/cms": "~3.7"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/PHPUnit": "~3.7@stable"
|
"phpunit/phpunit": "^5.7"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": []
|
||||||
"branch-alias": {
|
|
||||||
"1.x-dev": "1.5.x-dev"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by PhpStorm.
|
* @mixin PHPUnit_Framework_TestCase
|
||||||
* User: dmooyman
|
|
||||||
* Date: 27/05/16
|
|
||||||
* Time: 3:10 PM
|
|
||||||
*/
|
*/
|
||||||
class SubsiteXHRControllerTest extends FunctionalTest
|
class SubsiteXHRControllerTest extends FunctionalTest
|
||||||
{
|
{
|
||||||
@ -34,7 +31,7 @@ class SubsiteXHRControllerTest extends FunctionalTest
|
|||||||
'X-Requested-With' => 'XMLHttpRequest'
|
'X-Requested-With' => 'XMLHttpRequest'
|
||||||
));
|
));
|
||||||
$this->assertEquals(200, $result->getStatusCode());
|
$this->assertEquals(200, $result->getStatusCode());
|
||||||
$this->assertEquals('text/json', $result->getHeader('Content-Type'));
|
$this->assertEquals('application/json', $result->getHeader('Content-Type'));
|
||||||
$body = $result->getBody();
|
$body = $result->getBody();
|
||||||
$this->assertContains('Main site', $body);
|
$this->assertContains('Main site', $body);
|
||||||
$this->assertContains('Test 1', $body);
|
$this->assertContains('Test 1', $body);
|
||||||
|
Loading…
Reference in New Issue
Block a user