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
|
sudo: false
|
||||||
|
|
||||||
|
dist: precise
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
|
@ -210,9 +210,9 @@ class ConfigManifestTest extends SapphireTest
|
|||||||
'Fragment is included if both Only rules succeed.'
|
'Fragment is included if both Only rules succeed.'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertTrue(
|
$this->assertFalse(
|
||||||
isset($config['TwoExceptSucceed']),
|
isset($config['OneExceptFail']),
|
||||||
'Fragment is included if one of the Except rules matches.'
|
'Fragment is not included if one of the Except rules fails.'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertFalse(
|
$this->assertFalse(
|
||||||
|
@ -21,7 +21,7 @@ Except:
|
|||||||
---
|
---
|
||||||
SilverStripe\Core\Tests\Manifest\ConfigManifestTest:
|
SilverStripe\Core\Tests\Manifest\ConfigManifestTest:
|
||||||
MultipleRules:
|
MultipleRules:
|
||||||
TwoExceptSucceed: "included - one of the excepts succeeds"
|
OneExceptFail: "excluded - one of the excepts fails"
|
||||||
---
|
---
|
||||||
Except:
|
Except:
|
||||||
ConstantDefined: MULTIPLERULES_DEFINEDCONSTANT
|
ConstantDefined: MULTIPLERULES_DEFINEDCONSTANT
|
||||||
|
Loading…
Reference in New Issue
Block a user