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

New event "afterCreateCollection" like "afterCreateFile" #1341

Merged
merged 2 commits into from
Nov 16, 2021

Conversation

woutersamaey
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Apr 29, 2021

Codecov Report

Merging #1341 (759efe8) into master (20d39d0) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1341      +/-   ##
============================================
+ Coverage     97.31%   97.35%   +0.03%     
  Complexity     2809     2809              
============================================
  Files           174      174              
  Lines          7975     7976       +1     
============================================
+ Hits           7761     7765       +4     
+ Misses          214      211       -3     
Impacted Files Coverage Δ
lib/DAV/Server.php 97.19% <100.00%> (+0.60%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 20d39d0...759efe8. Read the comment docs.

@DeepDiver1975
Copy link
Member

Please add tests. THX

@woutersamaey
Copy link
Contributor Author

@DeepDiver1975 why? and what should I test exactly? It's just an event to hook other stuff on.

@DeepDiver1975
Copy link
Member

@DeepDiver1975 why? and what should I test exactly? It's just an event to hook other stuff on.

A test ensures that a specific behavior of the component/system is properly implemented.

Imagine a future refactoring which accidentiallly removes the event being triggered or what so ever.

A test can help to detect such regressions.

@woutersamaey
Copy link
Contributor Author

Ok that makes sense.

It appears that afterCreateFile also doesn't have a test, so I can't copy/paste that one.

Unfortunately I don't have the time right now to set up the whole thing and make sure it runs.

@DeepDiver1975
Copy link
Member

Unfortunately I don't have the time right now to set up the whole thing and make sure it runs.

No prob! Just push the tests as soon as you find the time. THX

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

I added tests.

@phil-davis phil-davis merged commit 71bbf40 into sabre-io:master Nov 16, 2021
@woutersamaey woutersamaey deleted the patch-1 branch June 2, 2022 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants