-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[Config] Extra tests for Config component #19399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
zomberg
commented
Jul 21, 2016
Q | A |
---|---|
Branch? | 2.7 |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | ~ |
License | MIT |
Doc PR | ~ |
{ | ||
$builder = $this->getTestBuilder(); | ||
|
||
$reflection = new \ReflectionProperty($builder, 'ifPart'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need reflection here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. You are right. I didn't notice that this is public property. I fixed it.
👍 Status: reviewed @zomberg thanks for adding these missing tests! |
$this->assertEquals(array('enabled' => false), $this->getField($node, 'falseEquivalent')); | ||
$this->assertEquals(array('enabled' => true), $this->getField($node, 'trueEquivalent')); | ||
$this->assertEquals(array('enabled' => true), $this->getField($node, 'nullEquivalent')); | ||
$this->assertEquals(array('enabled' => true), $this->getField($node, 'nullEquivalent')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicated line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-grekas, done.
👍 with minor comment |
Thank you @zomberg. |
This PR was squashed before being merged into the 2.7 branch (closes #19399). Discussion ---------- [Config] Extra tests for Config component | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- d0f4434 [Config] Extra tests for Config component