Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300000

Fix BlockContentAccessHandlerTest::providerTestAccess wrong coverage by early return

$
0
0

Problem/Motivation

The test provider BlockContentAccessHandlerTest::providerTestAccess return too early on the second foreach, which prevent the provider to return a complete array of potential coverage for ['update', 'delete'] operations.

This prevents the complete coverage of delete operation by returning on the first loop of the array ['update', 'delete'].

Proposed resolution

Fix the test by returning at the end of the provider.

This will pass the coverage of this class from 16 to 24 tests.

Completed tasks

  • Write a patch.

Remaining tasks

  • Review and commit.

User interface changes

None.

API changes

None.


Viewing all articles
Browse latest Browse all 300000

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>