Quality Control & Assurance Flashcards
7 cards from real Drupal practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Quality Control & Assurance flashcards as text
Which Drupal module provides a centralized dashboard for running automated tests from the admin UI?
Answer: Simpletest UI
Simpletest UI (now largely replaced by PHPUnit) provided an admin interface for running tests directly from the Drupal backend.
What does the `--filter` flag do when running Drupal PHPUnit tests via the CLI?
Answer: Runs only tests matching a given name or pattern
The `--filter` flag narrows the test run to only those test cases or methods whose names match the provided string or regex pattern.
In Drupal's testing architecture, what is a 'functional JavaScript test' (FunctionalJavascriptTestCase) used for?
Answer: Testing behaviors that require a real browser with JS execution
FunctionalJavascriptTestCase uses WebDriver (via Chromedriver) to run a real browser, enabling testing of AJAX, dynamic content, and other JS-driven behaviors.
Which coding standard tool is most commonly used for Drupal PHP code quality checks in CI pipelines?
Answer: PHP_CodeSniffer with Drupal standards
PHP_CodeSniffer configured with the Drupal and DrupalPractice sniff sets is the standard linting tool used by the Drupal community and enforced in CI.
What is the purpose of the `drupal_flush_all_caches()` call commonly used in test teardown?
Answer: Ensures a clean cache state so subsequent tests are not affected by cached data
Flushing all caches in teardown prevents stale cached data from leaking into subsequent test runs and causing false positives or negatives.
When writing a Drupal KernelTest, which of the following is TRUE compared to a UnitTest?
Answer: KernelTest bootstraps part of the Drupal kernel and can use the service container
KernelTestBase bootstraps a minimal Drupal kernel with the service container available, allowing interaction with services and the database without a full HTTP request cycle.
Which Drush command can be used to check whether a Drupal site has any pending database updates that need to be run?
Answer: drush updatedb-status
`drush updatedb-status` (alias `updb-status`) lists all pending hook_update_N implementations without actually running them.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- docs.acquia.com — Retake fee, retake policy, score release, exam format, passing score, time limit, score validity, test delivery, eligibility, registration deadline · verified Oct 2026
- acquia.com — Fees, exam format, passing score, time limit · verified Oct 2026