mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
b6130c4e11
The previous commit (9fa9ef89
) added support for the new SilverStripe 4
feature of Many Many relationships through an intermediary object. After
much head scratching and community testing, the solution was proven to
work, however had no automated tests to confirm as such. This commit
rectifies that by testing both versioned and unversioned DataObjects in
a many_many through style relationship. Some minor tidy and comments
were also added as per feedback on the functionality code changes.
31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
YAML
Symbiote\GridFieldExtensions\Tests\Stub\ThroughDefiner:
|
|
DefinerOne:
|
|
DefinerTwo:
|
|
|
|
Symbiote\GridFieldExtensions\Tests\Stub\ThroughBelongs:
|
|
BelongsOne:
|
|
BelongsTwo:
|
|
BelongsThree:
|
|
|
|
Symbiote\GridFieldExtensions\Tests\Stub\ThroughIntermediary:
|
|
One:
|
|
Defining: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughDefiner.DefinerOne
|
|
Belonging: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughBelongs.BelongsOne
|
|
Sort: 3
|
|
Two:
|
|
Defining: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughDefiner.DefinerOne
|
|
Belonging: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughBelongs.BelongsTwo
|
|
Sort: 2
|
|
Three:
|
|
Defining: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughDefiner.DefinerOne
|
|
Belonging: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughBelongs.BelongsThree
|
|
Sort: 1
|
|
Four:
|
|
Defining: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughDefiner.DefinerTwo
|
|
Belonging: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughBelongs.BelongsTwo
|
|
Sort: 1
|
|
Five:
|
|
Defining: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughDefiner.DefinerTwo
|
|
Belonging: =>Symbiote\GridFieldExtensions\Tests\Stub\ThroughBelongs.BelongsThree
|
|
Sort: 2
|