Skip to content

Fix all the tests #27

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Fix all the tests #27

wants to merge 8 commits into from

Conversation

dtakken
Copy link
Contributor

@dtakken dtakken commented Sep 23, 2024

Fix the unit tests, among other things

Copy link
Contributor

@mvdhoek1 mvdhoek1 left a comment

Choose a reason for hiding this comment

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

Heb het niet zelf getest maar dit ziet er goed uit!

@dtakken dtakken force-pushed the fix-all-the-tests branch 6 times, most recently from 4d554b1 to ccf5917 Compare September 24, 2024 13:20
Copy link

github-actions bot commented Sep 24, 2024

Coverage report for commit: bf8f82c
File: coverage.xml

Cover ┌─────────────────────────┐ Freq.
   0% │ ███████████████████████ │ 59.6%
  10% │ ███░░░░░░░░░░░░░░░░░░░░ │  5.3%
  20% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  30% │ ██░░░░░░░░░░░░░░░░░░░░░ │  3.5%
  40% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  50% │ ██░░░░░░░░░░░░░░░░░░░░░ │  3.5%
  60% │ █░░░░░░░░░░░░░░░░░░░░░░ │  1.8%
  70% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
  80% │ █░░░░░░░░░░░░░░░░░░░░░░ │  1.8%
  90% │ ░░░░░░░░░░░░░░░░░░░░░░░ │  0.0%
 100% │ ██████████░░░░░░░░░░░░░ │ 24.6%
      └─────────────────────────┘
 *Legend:* █ = Current Distribution 
Summary - Lines: 24.20% | Methods: 23.61%
FilesLinesMethodsBranches
src/Base/Admin
   AdminServiceProvider.php--100.00%
src/Base/ElasticPress
   ElasticPress.php45.61%45.45%100.00%
   ElasticPressServiceProvider.php--100.00%
src/Base/Exceptions
   PropertyNotExistsException.php100.00%100.00%100.00%
src/Base/Expired
   Expired.php--100.00%
   ExpiredServiceProvider.php--100.00%
src/Base/Foundation
   Config.php100.00%100.00%100.00%
   DependencyChecker.php53.66%28.57%100.00%
   Loader.php--100.00%
   Plugin.php--100.00%
   ServiceProvider.php100.00%100.00%100.00%
src/Base/Metabox
   AdminNotice.php--100.00%
   MetaboxServiceProvider.php60.98%28.57%100.00%
src/Base/Metabox/Commands
   AbstractConvert.php--100.00%
   ConvertExpirationDate.php--100.00%
   ConvertHighlighted.php--100.00%
src/Base/Models
   Item.php--100.00%
   PortalLinkGenerator.php--100.00%
src/Base/PostType
   PostTypeServiceProvider.php14.29%25.00%100.00%
src/Base/PostsToPosts
   PostsToPostsServiceProvider.php--100.00%
src/Base/Repositories
   AbstractRepository.php--100.00%
   Item.php--100.00%
   Location.php100.00%100.00%100.00%
   Search.php--100.00%
   Subtheme.php100.00%100.00%100.00%
   Theme.php100.00%100.00%100.00%
src/Base/RestAPI/Controllers
   BaseController.php--100.00%
   ItemController.php11.58%6.67%100.00%
   SearchController.php--100.00%
   ThemeController.php--100.00%
src/Base/RestAPI/ItemFields
   AbstractSEO.php--100.00%
   CommentField.php100.00%100.00%100.00%
   ConnectedField.php--100.00%
   ConnectedThemeItemField.php--100.00%
   DateModified.php--100.00%
   DateModifiedGMT.php--100.00%
   DownloadsField.php100.00%100.00%100.00%
   EscapeElementField.php--100.00%
   ExpiredField.php100.00%100.00%100.00%
   FeaturedImageField.php100.00%100.00%100.00%
   HighlightedItemField.php100.00%100.00%100.00%
   LinksField.php100.00%100.00%100.00%
   NotesField.php100.00%100.00%100.00%
   PortalURL.php--100.00%
   SeoPress.php--100.00%
   SynonymsField.php100.00%100.00%100.00%
   TaxonomyField.php--100.00%
   Yoast.php--100.00%
src/Base/RestAPI
   RestAPIServiceProvider.php7.41%25.00%100.00%
src/Base/Settings
   SettingsPageOptions.php78.26%70.00%100.00%
   SettingsServiceProvider.php25.00%20.00%100.00%
src/Base/Support
   CreatesFields.php33.33%33.33%100.00%
src/Base/Support/Traits
   CheckPluginActive.php--100.00%
   FlattenArray.php--100.00%
src/Base/Taxonomy
   TaxonomyController.php--100.00%
   TaxonomyServiceProvider.php--100.00%
src/Base/Varnish
   VarnishServiceProvider.php--100.00%

🤖 comment via lucassabreu/comment-coverage-clover

@dtakken
Copy link
Contributor Author

dtakken commented Sep 24, 2024

Ik heb de tests niet helemaal verwijderd maar wel versoberd. En coverage toegevoegd, omdat ik toch bezig was. ;)

@dtakken dtakken marked this pull request as ready for review September 24, 2024 13:31
Copy link
Contributor

@SimonvanWijhe SimonvanWijhe left a comment

Choose a reason for hiding this comment

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

Goed werk!

Ik ben benieuwd of de tests ook gaan slagen op 8.1. Je zou deze alvast kunnen toevoegen aan de tests action: https://github.com/OpenWebconcept/plugin-openpub-base/pull/27/files#diff-7314d0ebbd2e9537ae4889316745b4fd2fa43cb86275c9caae18a86ba228b642R18

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.

3 participants