Orchard.Gallery.Specs
3 concerns,
22 contexts,
42 specifications
Manage Package Ids specifications
5 contexts, 5 specifications
When current user has no access key
1 specification
When package Id exists in feed
1 specification
When package Id exists in Orchard
1 specification
When package Id is not used anywhere
1 specification
When package Id is used on an unfinished submission
1 specification
Package Id Expiration specifications
10 contexts, 26 specifications
When deleter throws an exception
3 specifications
- Should log the exception
- Should not update the last package expiration check time
- Should not rethrow
When expiration is not enabled
1 specification
- Should not try to expire package ids
When it has already run today
1 specification
- Should not try to expire package ids
When it has not run for today and expiration is enabled
2 specifications
- Should try to expire package ids
- Should set last package expiration check time to now
When task has never been run before
2 specifications
- Should set last package expiration check time to 2AM today
- Should not try to expire package ids
When userkey package does not have a registered date
1 specification
- Should not process the package
When userkey package is expired and is not on the feed
4 specifications
- Should delete unfinished packages
- Should delete userkey package
- Should log message
- Should not notify user if package id is about to expire
When userkey package is expired and on the feed
4 specifications
- Should notify user if package id is about to expire
- Should not delete unfinished packages
- Should not delete userkey package
- Should not log message
When userkey package is not expired and not on the feed
4 specifications
- Should notify user if package id is about to expire
- Should not delete unfinished packages
- Should not delete userkey package
- Should not log message
When userkey package is not expired and on the feed
4 specifications
- Should notify user if package id is about to expire
- Should not delete unfinished packages
- Should not delete userkey package
- Should not log message
Package Id Expiration Notification specifications
7 contexts, 11 specifications
When package id is at warning date and is not on feed
1 specification
- Should send warning message to user
When package id is at warning date and is on feed
1 specification
- Should not send warning message to user
When package id is not at warning date and is not on feed
1 specification
- Should not send warning message to user
When package id is not at warning date and is on feed
1 specification
- Should not send warning message to user
When site is not configured to send warnings
1 specification
When user of userkey does not exist
1 specification
- Should not send a message
When user of userkey exists
5 specifications
- Should send an expiration warning email message
- Should include username in message
- Should include sitename in message
- Should include package id in message
- Should include expiration date in message