Skip to content
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

added test for SessionDownloadStrategy #1015

Closed
wants to merge 1 commit into from

Conversation

codebach
Copy link
Contributor

@codebach codebach commented May 27, 2016

Replaces #999

### Added
- Added tests for `SonataMediaBundle/Security/SessionDownloadStrategy`

Subject

Test for SonataMediaBundle/Security/SessionDownloadStrategy

@OskarStark OskarStark changed the title added test for SessionDownloadStrategy refs #999 added test for SessionDownloadStrategy May 27, 2016
@OskarStark
Copy link
Member

@greg0ire can you please have a look?

@greg0ire
Copy link
Contributor

Thanks for your contribution! Please monitor this thread : sonata-project/dev-kit#89 (and vote if you have an opinion on it)

{
public function testIsGrantedFalseWithContainerHasNoSession()
{
$container = $this->getMock('Symfony\Component\DependencyInjection\ContainerInterface');
Copy link
Contributor

@greg0ire greg0ire May 27, 2016

Choose a reason for hiding this comment

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

So… we're depending on the whole container in this class 😞

Copy link
Member

Choose a reason for hiding this comment

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

@greg0ire
Copy link
Contributor

LGTM !

@OskarStark
Copy link
Member

patch or not? @greg0ire

If travis is green we can merge this!

@greg0ire greg0ire added the patch label May 27, 2016
@greg0ire
Copy link
Contributor

No new feature, no BC-break, and uncovered code can be considered a bug, so yeah, totally patch.

@codebach
Copy link
Contributor Author

I close this PR because I will change this test and create a PR to master:
See : #1032

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.

4 participants