PHPackages                             iqual/pagedesigner-test-suite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. iqual/pagedesigner-test-suite

ActiveLibrary[Testing &amp; Quality](/categories/testing)

iqual/pagedesigner-test-suite
=============================

Pagedesigner product test suite.

v1.0.1(2mo ago)11.1kGPL-2.0-or-laterPHP

Since Apr 28Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/iqual-ch/pagedesigner-test-suite)[ Packagist](https://packagist.org/packages/iqual/pagedesigner-test-suite)[ RSS](/packages/iqual-pagedesigner-test-suite/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Pagedesigner Test Suite
=======================

[](#pagedesigner-test-suite)

Package containing tests for the Pagedesigner Suite of modules. These tests are intended for catching regressions introduced by routine Composer updates (Drupal core or contrib module changes) across all client projects built on the Pagedesigner product.

These tests integrate seamlessly into [iqual's Drupal Platform](https://github.com/iqual-ch/drupal-platform).

Tests
-----

[](#tests)

### Kernel

[](#kernel)

Testing an empty Drupal installation with a clean database.

#### Pagedesigner Container Kernel Test

[](#pagedesigner-container-kernel-test)

- Bootstraps the Pagedesigner module with core dependencies only (no project-specific modules).
- Creates a node type with a `pagedesigner_item` field, creates a node, and asserts that a container element is auto-created and correctly references the node.
- Exercises `PagedesignerService::addContainer` — the most fundamental Pagedesigner contract.

### Existing Site

[](#existing-site)

Testing on the existing Drupal installation with the live database.

#### Admin Pages Test

[](#admin-pages-test)

- Tests that Pagedesigner admin routes are accessible to administrators: `/admin/config/pagedesigner`, `/admin/config/pagedesigner/settings`, `/admin/content/pagedesigner_elements`, `/admin/structure/pagedesigner_type/list`.
- Asserts that anonymous users are redirected away from the Pagedesigner editor route.

#### Pagedesigner Access Test

[](#pagedesigner-access-test)

- Verifies that the Pagedesigner editor (`/node/{nid}/pagedesigner`) enforces permissions correctly.
- Asserts that anonymous users and users without `edit pagedesigner element entities` are denied.
- Asserts that users with the permission can access the editor.

#### Pagedesigner Container Test

[](#pagedesigner-container-test)

- Dynamically discovers all content types with `pagedesigner_item` fields (portable across all client projects — no hardcoded type names).
- For each discovered type: creates a node and asserts that a container element exists, references the node, and matches its language.

#### Pagedesigner Render Test

[](#pagedesigner-render-test)

- Creates a test node with a programmatically added `text` element (including actual text content).
- Verifies that the public render produces valid Pagedesigner HTML (`section.pd-content.pd-live`).
- Verifies that the Pagedesigner editor view renders without errors, including the GrapesJS container marker.

#### Pagedesigner REST API Test

[](#pagedesigner-rest-api-test)

- Guards against regressions in the REST resource layer caused by REST module or serialization updates.
- Verifies that the pattern endpoint (`/pagedesigner/pattern?_format=hal_json`) returns a valid, non-empty response for authenticated users.
- Verifies that unauthenticated access to the pattern endpoint is denied.
- Verifies that the element REST endpoint is accessible with the correct credentials.

### Existing Site Javascript

[](#existing-site-javascript)

Testing on the existing Drupal installation with the live database and a full browser.

#### Pagedesigner Edit Save Test

[](#pagedesigner-edit-save-test)

- Full browser round-trip test: creates a test node, opens the Pagedesigner editor, adds a `text` element with content, saves, navigates to the canonical URL, and asserts the element appears in the rendered page.
- Captures screenshots at each milestone for debuggability.

#### Pagetree Test

[](#pagetree-test)

- Tests the companion `pagetree` module's core workflow.
- Creates an unpublished test node, opens the pagetree widget, finds the node entry, opens its context menu, and triggers the publish action.
- Asserts that the node is published after the action completes.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance87

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

65d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb59715390ddb5e8d804e769ee3c1705073b18c39a0d0a7ad852c91c28be46c3?d=identicon)[martinstadelmann](/maintainers/martinstadelmann)

![](https://www.gravatar.com/avatar/43082de1b2e2b2b2d48b7ff7dbc7c60ff1d0a015123d4062ac0b49ea0b3b725f?d=identicon)[iqual](/maintainers/iqual)

---

Top Contributors

[![martinstadelmann](https://avatars.githubusercontent.com/u/25382761?v=4)](https://github.com/martinstadelmann "martinstadelmann (8 commits)")

### Embed Badge

![Health badge](/badges/iqual-pagedesigner-test-suite/health.svg)

```
[![Health](https://phpackages.com/badges/iqual-pagedesigner-test-suite/health.svg)](https://phpackages.com/packages/iqual-pagedesigner-test-suite)
```

###  Alternatives

[drupal/core-dev

require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.

2022.6M343](/packages/drupal-core-dev)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

30919.1k](/packages/acquia-orca)[oxid-esales/testing-library

OXID eShop testing library

13378.8k12](/packages/oxid-esales-testing-library)[hautelook/frankenstein

The creature that is summoned by mixing PHPUnit, Prophecy, Atoum.

223.2k2](/packages/hautelook-frankenstein)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
