-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
[3.3][Tests] Extension coverage #6521
[3.3][Tests] Extension coverage #6521
Conversation
*/ | ||
protected function registerServices(Application $app) | ||
{ | ||
$this-> extendDatabaseSchemaServices(); |
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.
derp
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.
Derp?
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.
The space
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.
derp
parent::setUpBeforeClass(); | ||
$fs = new Filesystem(); | ||
$fs->copy(PHPUNIT_ROOT . '/resources/test.twig', PHPUNIT_WEBROOT . '/theme/base-2016/test.twig', true); | ||
} |
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.
Can you just add an Array_Loader
to the Twig_Loader_Chain
for that render test?
The less files we have to copy around the better.
@CarsonF: Updated |
"Calback" <- missing second Not thrilled about the defined constant usage but I'll let it slide. You should also render with sandbox enabled so Is |
Fixed
Makes at least two of us
Done
Yes |
Why do you not want to use ArrayLoader then? |
Fine, done 😜 |
{ | ||
return [ | ||
'koala', | ||
'dropbear' => ['position' => 'prepend', 'namespace' => 'Marsupial'], |
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.
How is this getting tested?
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.
A lack of exceptions
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.
😞
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.
Sure, but it is more than we have, and I have very little desire/allowance time to work on tests, and am trying to turn a few quick PRs over to move a few things along … with the hope it makes it easier for others to help.
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.
with the hope it makes it easier for others to help.
Plus Twig internals and writing tests, just sayin' 😉
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.
I gave in, and added the tests … You owe me a merge now!
Filter dropbear {{ name|dropbear }} | ||
TWIG; | ||
$loader = new ArrayLoader(['marsupial.twig' => $template]); | ||
$app['twig']->setLoader($loader); |
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.
Just also had the thought that you could set this with $app['twig.templates']
instead of creating an ArrayLoader
directly.
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.
Yeah, but I CBF iterating test to perfection … they're tests, better things to focus on.
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.
I'm good with this now, if you are good with my commits.
I am … over to you @bobdenotter |
|
No description provided.