mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #7198 from open-sausages/pulls/4.0/fix-config-rules
BUG fix config rules to match updated `Except`
This commit is contained in:
commit
43620129c0
@ -2,6 +2,8 @@ language: php
|
||||
|
||||
sudo: false
|
||||
|
||||
dist: precise
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
|
@ -210,9 +210,9 @@ class ConfigManifestTest extends SapphireTest
|
||||
'Fragment is included if both Only rules succeed.'
|
||||
);
|
||||
|
||||
$this->assertTrue(
|
||||
isset($config['TwoExceptSucceed']),
|
||||
'Fragment is included if one of the Except rules matches.'
|
||||
$this->assertFalse(
|
||||
isset($config['OneExceptFail']),
|
||||
'Fragment is not included if one of the Except rules fails.'
|
||||
);
|
||||
|
||||
$this->assertFalse(
|
||||
|
@ -21,7 +21,7 @@ Except:
|
||||
---
|
||||
SilverStripe\Core\Tests\Manifest\ConfigManifestTest:
|
||||
MultipleRules:
|
||||
TwoExceptSucceed: "included - one of the excepts succeeds"
|
||||
OneExceptFail: "excluded - one of the excepts fails"
|
||||
---
|
||||
Except:
|
||||
ConstantDefined: MULTIPLERULES_DEFINEDCONSTANT
|
||||
|
Loading…
Reference in New Issue
Block a user