mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
Add tests for 3 and 3.2 branches, support 5.6
Rename relations which are now physical methods in 3.2
This commit is contained in:
parent
1d25be7bdd
commit
8e56ed3e5a
12
.travis.yml
12
.travis.yml
@ -1,12 +1,20 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
sudo: false
|
||||||
|
|
||||||
|
php:
|
||||||
- 5.3
|
- 5.3
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DB=MYSQL CORE_RELEASE=3.1
|
- DB=MYSQL CORE_RELEASE=3.1
|
||||||
- DB=MYSQL CORE_RELEASE=master
|
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- php: 5.5
|
||||||
|
env: DB=MYSQL CORE_RELEASE=3
|
||||||
|
- php: 5.6
|
||||||
|
env: DB=MYSQL CORE_RELEASE=3.2
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
|
||||||
|
@ -17,22 +17,22 @@ class GridFieldOrderableRowsTest extends SapphireTest {
|
|||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'GridFieldOrderableRowsTest_Ordered',
|
'GridFieldOrderableRowsTest_Ordered',
|
||||||
$orderable->getSortTable($parent->HasMany())
|
$orderable->getSortTable($parent->MyHasMany())
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'GridFieldOrderableRowsTest_Ordered',
|
'GridFieldOrderableRowsTest_Ordered',
|
||||||
$orderable->getSortTable($parent->HasManySubclass())
|
$orderable->getSortTable($parent->MyHasManySubclass())
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'GridFieldOrderableRowsTest_Ordered',
|
'GridFieldOrderableRowsTest_Ordered',
|
||||||
$orderable->getSortTable($parent->ManyMany())
|
$orderable->getSortTable($parent->MyManyMany())
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'GridFieldOrderableRowsTest_Parent_ManyMany',
|
'GridFieldOrderableRowsTest_Parent_MyManyMany',
|
||||||
$orderable->setSortField('ManyManySort')->getSortTable($parent->ManyMany())
|
$orderable->setSortField('ManyManySort')->getSortTable($parent->MyManyMany())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,16 +45,16 @@ class GridFieldOrderableRowsTest extends SapphireTest {
|
|||||||
class GridFieldOrderableRowsTest_Parent extends DataObject {
|
class GridFieldOrderableRowsTest_Parent extends DataObject {
|
||||||
|
|
||||||
private static $has_many = array(
|
private static $has_many = array(
|
||||||
'HasMany' => 'GridFieldOrderableRowsTest_Ordered',
|
'MyHasMany' => 'GridFieldOrderableRowsTest_Ordered',
|
||||||
'HasManySubclass' => 'GridFieldOrderableRowsTest_Subclass'
|
'MyHasManySubclass' => 'GridFieldOrderableRowsTest_Subclass'
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $many_many = array(
|
private static $many_many = array(
|
||||||
'ManyMany' => 'GridFieldOrderableRowsTest_Ordered'
|
'MyManyMany' => 'GridFieldOrderableRowsTest_Ordered'
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $many_many_extraFields = array(
|
private static $many_many_extraFields = array(
|
||||||
'ManyMany' => array('ManyManySort' => 'Int')
|
'MyManyMany' => array('ManyManySort' => 'Int')
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user