Problem/Motivation

As a developer, i want to have some automatic tests.

Steps to reproduce

Proposed resolution

Adding tests for following use cases

  • Place block
  • Preferences title
  • Disabled klaro
  • Exclude paths

Remaining tasks

We must first merge #3335246. Testing will not working with incorrect naming.

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Erik Seifert created an issue. See original summary.

erik seifert’s picture

Assigned: erik seifert » Unassigned
Status: Active » Needs review
erik seifert’s picture

Issue summary: View changes
Parent issue: » #3335246: Config schema incorrect name
erik seifert’s picture

Following tests are included for now:

- Simple test for placing block
- Test for changing title
- Test for excluded paths
- Test for disabled klaro

Also i added all tests with cache behaviour and cache tags.

erik seifert’s picture

norman.lol’s picture

The MR also contains changes to the schema file. Is this on purpose? Does this affect existing installs? Is an update hook necessary for existing installations?

norman.lol’s picture

Title: Adding test for klaro configurations » Add tests
Category: Task » Feature request
erik seifert’s picture

erik seifert’s picture

The current schema files does not apply any schema on simple_klaro.settings. Update hook ist not needed here.

norman.lol’s picture

Oh, ay ay ay 😅

elber’s picture

Assigned: Unassigned » elber

I will review it.

erik seifert’s picture

erik seifert’s picture

I have some findings with the tests.

- Added none initiated plugin manager
- Add correct behavior for empty exclude_paths
- Better block rendering (Bypass if user has the permission)

erik seifert’s picture

Status: Needs review » Needs work
erik seifert’s picture

Status: Needs work » Needs review
erik seifert’s picture

@elber feel free to test.

norman.lol’s picture

Nice work!

norman.lol’s picture

Assigned: elber » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.