8000 [2.3][Translation] test refresh cache when resources File change. by aitboudad · Pull Request #14279 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[2.3][Translation] test refresh cache when resources File change. #14279

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

aitboudad
Copy link
Contributor
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets ~
Tests pass? yes
License MIT

For 2.6 #14280

@aitboudad aitboudad force-pushed the translation_test_refresh_resources_files_2_3 branch from 3b00bb7 to 4d01fab Compare April 9, 2015 15:12
@aitboudad
Copy link
Contributor Author

@mpdude I made an update that refer to your comment, is it ok :) ?

@mpdude
Copy link
Contributor
mpdude commented Apr 9, 2015

👍 for the "expect never" change.

Besides that, I wouldn't touch the cache file. How that works (and what effects it has) is an implementation detail of the ConfigCache. And I don't see what additional assertions this change would bring.

Maybe someone else can comment?

@aitboudad
Copy link
Contributor Author

it seems to be OK, I'll merge it.

@mpdude
Copy link
Contributor
mpdude commented Apr 9, 2015

Disregard my previous comment – I was looking at an outdated version of the "Files changed" tab.

Sorry.

@aitboudad aitboudad merged commit 4d01fab into symfony:2.3 Apr 9, 2015
aitboudad added a commit that referenced this pull request Apr 9, 2015
…e change. (aitboudad)

This PR was merged into the 2.3 branch.

Discussion
----------

[2.3][Translation] test refresh cache when resources File change.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets  | ~
| Tests pass?   | yes
| License       | MIT

For 2.6 #14280

Commits
-------

4d01fab [2.3][Translation] test refresh cache when resources File change.
@aitboudad aitboudad deleted the translation_test_refresh_resources_files_2_3 branch April 9, 2015 18:31
@xabbuh
Copy link
Member
xabbuh commented Apr 13, 2015

@aitboudad It seems that this PR makes builds for the low deps fail on higher branches. Do you have an idea what's going wrong there?

->will($this->returnValue(false))
;
$catalogue = $this->getCatalogue('fr', array('foo' => 'foo fresh'));
$catalogue->addResource($resource);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh haven't looked at it in detail, but I think this resource mock has no effect. Instead the resource already serialized in the cache will be loaded (and still be fresh)?

@mpdude
Copy link
Contributor
mpdude commented Apr 13, 2015

Have a look at the testCatalogueIsReloadedWhenResourcesAreNoLongerFresh() Method in #14291 where I do something similar, maybe that helps?

@aitboudad
Copy link
Contributor Author

I'll look into it :)

@aitboudad
Copy link
Contributor Author

fixed in #14344

aitboudad added a commit that referenced this pull request Apr 16, 2015
… no longer fresh. (aitboudad)

This PR was merged into the 2.3 branch.

Discussion
----------

[Translation][fixed test] refresh cache when resources are no longer fresh.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets  | #14279
| Tests pass?   | yes
| License       | MIT

Commits
-------

04b8e4e [Translation][fixed test] refresh cache when resources are no longer fresh.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0