Feed aggregator

Tag1 Insights: Inside the Pyramid: Guiding Principles for a Faster Drupal Test Suite

Drupal Planet -

Take Away Francesco Placella, Tag1 Senior Architect and Technical Lead, continues the four-part Inside the Pyramid series with the principles behind the guidelines he proposes for a faster Drupal test suite. This is the second post in the series. The first post covered the ideal shape for Drupal’s tests. The series comes from his DrupalCon Rotterdam 2026 session and supports the initiative to adopt the Test Pyramid approach in Drupal core, which is looking for contributors. Getting in Shape

If I did a good job so far, you are now supposed to be all fired up and looking forward to a bright future of pyramids and skyscrapers, which brings us to the how. It won’t be easy or effortless but, of course, I think it can be done, through the following steps:

  1. Define clear guidelines for both production and test code, updating AI best practices accordingly.
  2. Improve Unit testability across core, focusing especially on the entity system.
  3. Add new core test tools letting us implement lightweight Integration tests relying on UnitTestCase.
  4. Push down existing core test coverage towards the base as much as possible.
  5. Make core, contrib, and custom code adopt the guidelines at the same time: no need to wait for core to be done before starting.

Some of these steps can be worked on in parallel, but coming up with guidelines is the key one, so that is what I will focus on here.

The first step in coming up with valid guidelines is to identify the core principles behind them. Aside from what we already discussed, I am going to propose a few ideas, heavily inspired by, or taken verbatim from, a very influential source: Growing Object-Oriented Software, Guided by Tests (GOOS), the manifesto of the Mockist TDD school.

Listen to the Tests

As I mentioned in the first post , one of the main reasons why currently many Unit tests need to be implemented via KernelTestBase is that the Entity objects have so many intertwined dependencies that instantiating one forces you to instantiate a significant portion of the Entity and Field systems. Trying to use test doubles does not help either for the same reason. In fact, one of GOOS’ core principles says that if a test is hard to set up, that is design feedback: it is a signal that you should refactor the class to ensure its dependencies are more manageable and, hopefully, the resulting relationships more sensible.

After all, entities most often serve as data carriers between layers of a Drupal application and usually this kind of object is not supposed to get test doubles, since there is no interesting behavior to stub or mock, which brings us to the second principle.

Don’t Mock What You Don’t Own

This is also one of GOOS’ core principles: you are only supposed to mock interfaces you own, that is, belonging to code you can change. A mock is a specific type of test double encoding expectations about which method invocations it will receive, with the related returned values, if any.

Following the previous principle, if mocking an item in your code is hard, this should be treated as design feedback, implying, again, that you should refactor your code to make the relationships between its parts saner. Of course, that is not an option when you are dealing with code you do not own.

Moreover (and this is the deal breaker), a mock object encodes your assumptions about its behavior. This is fine for a class you own and whose behavior you control, but doing this with a class you do not own is dangerous, because its internal behavior may change without you noticing, which would cause your test to keep passing when in fact it should start failing.

Stub It Instead

A related case is when an interface you do not own is so narrow and self-documenting that there is basically no risk involved in stubbing it. For instance, the TimeInterface::getCurrentTime method is so straightforward that the risk of using a mocking API to stub it is close to zero: the contract is so well defined that returning a valid value is trivial and it is all we need to do to ensure the test will behave correctly.

Speak Your Own Language

Of course, from the perspective of a module author, the Entity Field API should be seen as framework code, similar to a third-party library, not something available for refactoring. Thus, attempting to create test doubles out of its interfaces is misguided, because they are not supposed to be stubbed (no interesting behavior there), let alone mocked.

From this, one could conclude that the only correct way to deal with entities within tests is to instantiate the real objects, which forces you to rely on KernelTestBase. However, my claim is that a module developer should not need to care about how hard it is to instantiate an entity: entities are generic domain-less data carriers, while a module is all about some specific domain logic, thus its code should be structured so that entities are hidden away as much as possible, treated as an implementation detail. This makes the module code more expressive and more easily Unit-testable at the same time.

Likewise, any other framework “jargon” should be banned from module code as much as possible: any reference to persistence, network connections, file system access, or a Drupal core subsystem should be treated as an implementation detail and hidden behind a thin adapter layer or confined to equally thin integration points, typically hook implementations and event listeners.

What about module code “extending” the framework, for instance by defining a formatter? Plugin classes are integration points too, so the same approach applies: if the module includes domain logic, extract it into classes speaking the module’s own language, and keep the plugin class as a thin adapter, covered by an Integration test. If there is no domain logic at all, the plugin is just wiring and an Integration test is all it needs. Things get trickier when the framework is the domain, as in the case of a new field type. There is not much left to hide, and here the rule of thumb is simple: the more a class’s code is about the framework’s own contract, the higher in the Pyramid its tests legitimately sit. In that case, the burden of Unit testability shifts from the module author to the framework, through test tooling – for instance, a fake implementation.

An Imperfect World

What about Deuteros? What is its place in this picture? The way I see it, Deuteros fulfills the need for an easy-to-instantiate data carrier object, same idea as the TestArticle class we are going to look at in the next post. In an ideal world, in the rare cases in which it is appropriate to instantiate an entity and not something domain-specific (it might be overkill sometimes), we should not be forced to give up on UnitTestCase tests. In the future we will hopefully be able to instantiate entity objects more easily; in the meantime, you can rely on Deuteros, which you can think of as a fake implementation of the Entity Field API’s parts defining a data-carrying system, backed by contract tests: those ensure that the behavior does not diverge from the original one, while giving you easy-to-instantiate objects. This is particularly useful in existing codebases, when refactoring is not available as a strategy, but you still would like to rely on fast Unit testing.

Widen the Base

As I touched on before, our goal should be to widen the Skyscraper’s base, which means leveraging UnitTestCase as much as possible, regardless of the scope of our tests. This translates into a two-question rule of thumb:

  1. Level: what is the scope of the test? Unit, Integration or End-To-End?
  2. Type: what is the lightest available tool to implement it?

The default choice would be a vanilla UnitTestCase, possibly paired with lightweight helper traits, for almost everything. Of course, we won’t always manage that, but we should only go to upper stories when absolutely required, because every story costs the Drupal Association money and puts more CO2 in the atmosphere. Not to mention our precious time.

Up Next

In the next post, I put these principles to work on a small newsroom module, showing how to hide entities from domain code so it can be Unit-tested.

Want a faster, leaner test suite for your Drupal project? Talk to our team.

DrupalEasy: Save $150 from Black Friday – Cyber Monday on the January session of AI Inside Drupal Essentials course!

Drupal Planet -

If you are on the fence about learning how to leverage Drupal's AI module ecosystem, we've got a Black Friday–Cyber Monday deal that can help you move forward.  Register for the January 2027 session of DrupalEasy's AI inside Drupal essentials course between November 27-30, 2026, and we'll take $150 off of the standard course fee.

This course has everything you're looking for to build a solid foundation using the Drupal AI module ecosystem. You'll learn about observability, providers, guardrails, and a whole bunch of different ways to implement AI functionality. You'll be sure to find a level of AI functionality that you and your organization can be comfortable with. 

As the official training partner of the Drupal AI Initiative, this course has sections on using local LLMs, building custom agents, developing RAG searches, and using ECA to build AI powered functionality that your content authors will really appreciate. All lessons include information about token usage - giving you the information you need to build a cost-effective AI solution as well. 

The course begins January 11, 2027, and runs for a total of 18 hours over two weeks. The course is split up into work-friendly three hour segments Monday, Wednesdays, and Fridays. Every class is recorded, and you'll retain access to class materials after the class finishes.

One added benefit that all DrupalEasy students and alumni get is access to our DrupalEasy Learning Community, including weekly office hours throughout the year. Whether you have a problem that needs solving, or just want to attend as a fly-on-the-wall, office hours are a great opportunity to stay active in the Drupal community and expand your personal network.

If you want to take advantage of this offer, register between Black Friday, November 27 and Cyber-Monday, November 30, 2026 and we'll automatically drop the course fee by $150–that's 25% off of the regular price of this amazing course.

The text of this blog post was written entirely by humans, with no AI. The image above was generated using AI.

Drupal Association blog: In the Open: What’s next for Drupal.org

Drupal Planet -

In the Open is a weekly series from Drupal Association Interim CEO Tiffany Farriss, sharing what she is hearing across the Drupal community and where the Association is headed. In this episode: gratitude for the people behind Drupal.org, a candid look at the funding gap and technical debt behind its challenges, and the team’s commitments to bring Drupal.org back together as one site.

“Drupal.org is how the world finds Drupal.”

The following is a transcript of Tiffany’s remarks, lightly edited for readability.

Two truths at Thanksgiving

It’s Thanksgiving here in the US, a time of feasting and family and gratitude, and Drupal has so much to be grateful for. I’m Tiffany Farriss, Interim CEO of the Drupal Association, and this is In the Open, our regular update as we navigate a year of change.

Heading into this time of gratitude, I want to acknowledge that I hold two truths together.

I’m deeply, deeply appreciative of Drupal.org as the home of the project, a place that has given us so much over the last 25 years. And I hold that with the candor that Drupal.org isn’t currently where we all need it to be. Drupal.org isn’t just a website or a code repository. It’s a collaborative platform where we gather and build and solve all our problems together, and it’s powered by everybody who contributes to Drupal.

So I want to start by saying I’m deeply grateful to the module maintainers, the documentation writers, the issue contributors, the event organizers, and community leaders who all care enough to hold the Drupal Association accountable when Drupal.org isn’t meeting our expectations. And I’m equally grateful for my team at the DA, who punch way above their weight every day, keeping essential community infrastructure running and secure with very limited resources.

How we got here

We’ve been in a bind. For years, the Association has been fighting a losing battle against technical debt. The simplest way to put it is we provide $10 of services for every Drupal site every year, but we can only fund $7.50. So that math doesn’t math, right? When you run a $10 service on a $7.50 budget, something’s got to give, and you end up borrowing from your own future just to keep the lights on today, and you never get around to those nice-to-haves.

Eventually, that catches up with you. Over the last year, stretched too thin, the DA didn’t always communicate very well. We didn’t always manage our expectations, and sometimes we didn’t deliver. And I understand why those who were disappointed may have lost some confidence in us. I acknowledge it, and we can, and we will repair it.

Drupal.org became both the victim and the most visible symptom of that dynamic. When I stepped into this role, one of the first hard calls I had to make was to stop a separate proof of concept product marketing site and fold that work into the broader Drupal.org effort. Changing course tested faith even further, but adding a third domain would have splintered us even more, when our top priority is reintegrating Drupal.org into one cohesive site.

Why one Drupal.org matters

Right now, AI assistants and search engines see www.drupal.org and new.drupal.org as two separate sources with two separate crawl budgets. Drupal.org is how the world finds Drupal. We get 425,000 visits a month from Google Search alone, and nearly half of developers turn to AI assistants when evaluating a CMS.

Look, after two years, that split has to end. Repairing this gives us back a single, authoritative home that backs up your work, whether you’re building with Drupal or investing in the ecosystem through our evolving Drupal Certified program, which is going to turn Drupal.org into this trusted registry of verifiable information about those who engage with Drupal in a net neutral or net positive way.

What we’re committing to

I want to share with you the commitments that the team is delivering, and why each one matters to you.

Our top priority, as I said, is unifying www.drupal.org. The first thing we’re doing is switching that www site to point to what used to be new.drupal.org, or what I’m calling the modern web platform. That will consolidate our domain authority, so evaluators, search engines, and AI tools encounter just one cohesive Drupal instead of two competing sources. But not everything is going to be there right away. We’re going to be layering it in over time.

The second thing is we’re going to be protecting those existing links. Project pages, documentation, issues, and forums are being migrated over to that site. Anything that isn’t yet migrated is going to live on a temporary host, and every existing URL will keep working automatically. That means bookmarks, shared links, and references inside Drupal core code aren’t going to break in that transition.

While we do this, though, I do want to manage expectations: you should expect search fluctuations. We’ll be moving roughly 80% of our search-driven pages temporarily, and this is likely going to cause a short-term dip in the search traffic while the search engines catch up. We’re expecting this, and we’re going to be monitoring it weekly, and we’ll share how it’s tracking so that there’s clear visibility rather than surprises.

Since this migration needs to continue, we’re going to be migrating that content strategically. Each section gets rebuilt on the modern site in the new design, and it’ll return to www. We’re going to start with the project pages, then move on to documentation. When they move, they’ll have cleaner metadata, structured data, and markdown outputs, so that developers, coding agents, and answer engines are all going to be able to pull more accurate, more current Drupal guidance than what they’ve been pulling to date.

The last thing is that we’re working on a comprehensive archiving strategy. We’re not going to be deleting 20 years of community history. Those end of life pages are going to stay online at their existing addresses, with a clear label at the top pointing to the current guidance. The only pages that will be removed from search are the ones that have virtually no active sites and no search demand. This helps us preserve our critical security advisories and change records, while giving anyone on an unsupported version of Drupal safe migration pathways into modern Drupal.

How you can help

Drupal.org belongs to all of us. It deserves to be something that we’re proud of, something that reflects the capabilities and awesomeness of Drupal and the sustainable support of our ecosystem, as well as the generosity and innovativeness of the people who are behind it all.

If you want to support our work on Drupal.org this Giving Tuesday, please consider donating. Whether it’s $2.50, $25, or $250 for the last 25 years of Drupal, please go to drupal.org/donate. Your support is going to help us keep digging out of this technical debt, repair our foundation, and secure Drupal.org’s future as not just a site on the current version of Drupal, which is good, or one that showcases the very best of what Drupal has to offer. That’s better. But it’s going to be one of the very best Drupal and open source sites in the world. I wish for nothing less.

So thank you for sticking with us, for pushing us to be better, and for everything that you contribute to Drupal and this community. If you celebrate, I hope you have a restful Thanksgiving, and we’ll talk again soon.

Follow the conversation

New episodes of In the Open publish each week. Subscribe on the Drupal Association YouTube channel to follow along.

With thanks to Stephen Cross of Second Signal Media for producing this series.

Drupal AI Initiative: Robert Salven on how Aalto University built trusted AI with Drupal

Drupal Planet -

Author: Liz Krukosky

Aalto University in Finland has been using Drupal since 2018. Today, its teams use Drupal AI for translation, image alt text, search, and chat across websites that current and prospective students, as well as staff use every day.

At the Enterprise AI Summit Rotterdam 2026, Robert Salven from Aalto University shared how they got there and why some of the biggest challenges have very little to do with AI itself.

Building trust before going public

At Aalto, AI-generated content doesn't simply go live. A person reviews it and makes the decision to publish. Robert says two fundamental things had to change before they got to that point.

One AI feature led to another

They started with translation. Then came alt text for images, translated alt text, chat based on the site's content, better search, and finally agentic search.

"Everything that we do, it feeds on to the next thing," Robert explains. In his words, Drupal's AI module "supercharged us.”

The small decisions that make it work

Editors translate one piece at a time, never a whole page, even though whole-page translation is one of their most requested features. Robert's reason will sound familiar to anyone who's ever skimmed a long document.

Robert also explains how they cut down on made-up answers, with a setting most people never talk about. Watch the full interview to find out more.

Sharing their work with the Drupal community

Aalto shares its work with the Drupal community and gets help in return. Robert explains where he thinks "the magic of the Drupal community and open source community really kicks in."

Building it was the easy part

Aalto's team built its agentic search in less than two weeks. Their chat feature was done in January but didn't go live internally until May, because of the compliance work that comes with operating in the EU.

Robert also shares why they sometimes release new features without announcing them, and how that makes people more forgiving.

Watch the interview

What stands out in this conversation is that Robert doesn't just talk about what AI can do. He talks about what it takes to make it useful.

The full interview is about 14 minutes.

Watch the interview

To learn more about Drupal AI, visit drupal.org/ai.

Stuart Clark (Deciphered): Druxt 0.25.2; Drupal Canvas sites, no Drupal required

Drupal Planet -

Druxt 0.25.2 renders Drupal Canvas pages in Nuxt, and you can try it in this post without installing anything. Press Run and a Nuxt 2 site boots in your browser. It reads a recording of a Drupal CMS site's API, so no Drupal is running behind it.

Druxt is the Fully Decoupled Drupal framework for Nuxt 2. Canvas is the page builder in Drupal CMS, and sites that have it installed now build. This release also keeps signed-in requests out of the server cache from the first request, makes v-model follow forms and filters, and reports why a resource failed to load. Upgrading takes one command and two checks.

Continue reading →

MidCamp - Midwest Drupal Camp: MidCamp 2027 Call for Speakers Is Open!

Drupal Planet -

We want you to speak at MidCamp

MidCamp is looking for community members just like you. You don't need to be a longtime speaker or a "Drupal celebrity." If you've done the work, solved a fun problem, or found a better way, that experience matters and we want to hear about it.

  • Proposals are due Monday, January 25, 2027
  • MidCamp is April 28–30, 2027 in Chicago, IL
Key dates
  • Nov 20, 2026 · Call for speakers opens
  • Jan 25, 2027 · Proposals due
  • Feb 18, 2027 · Speakers notified
  • Feb 22, 2027 · Schedule published

MidCamp 2027 runs Wednesday, April 28 through Friday, April 30 in Chicago.

New voices welcome. Really.

Since 2014, MidCamp has hosted over 300 sessions, and we're ready to add yours. Experienced speakers are always welcome, but camp is also a great place to give your first talk.

First-time speakers

If you've never given a talk, this is a good place to start. From the day submissions open to the deadline, we'll help you shape your idea into a proposal. 

Experienced speakers

Welcome back. We especially encourage you to bring a talk for a beginner audience. And if you know someone who has something to say but hasn't spoken yet, nudge them to submit. We're reaching out to individuals and groups for submissions, and we'd love it if you did the same.

Not a developer?

Good. Project managers, designers, content editors, strategists, business owners, and people who use Drupal every day all have sessions MidCamp needs.

  • 300+ sessions hosted since 2014
  • 35% of MidCamp 2025 attendees were at their first MidCamp
  • > 10 years of community-focused events
What we're looking for

MidCamp aims to offer sessions for everyone in the Drupal community, from beginners to advanced users, end users, and business owners. When you submit, pick the topic track that fits best. 

  • New to Drupal — Start-here sessions for people considering, or in their early days with Drupal.
  • Off the "Drupal Island" — Ideas, tools, and lessons from outside Drupal that our community can use.
  • Project Management & Consulting — Building teams, planning and estimating, and running a Drupal business.
  • Site-Building — Making sites with the Drupal UI and contributed modules, with little or no custom code.
  • Theming, Design, & Usability — Front end, design, accessibility, and user experience.
  • Development & Performance — Back end, custom modules, migrations, DevOps, testing, and speed.
  • Community — The people who make all this happen: contribution, camps, mentoring, and lessons from other open source projects.

You'll also tell us who it's for: All Attendees · Beginner · Intermediate · Advanced

Not sure if your idea fits? Submit it anyway. We'd rather review more proposals than miss a great talk.

For full submission details and guidelines, visit: midcamp.org/events/2027/how-submit-session

MidCamp - Midwest Drupal Camp: MidCamp Chicago 2026 call for sessions open through Feb 26

Drupal Planet -

We're excited to celebrate you -- our future speakers! If you've got an idea for a session, now's the time to get involved in MidCamp 2026, happening May 12-14 in Chicago.

Call for Speakers

Since 2014, MidCamp has hosted over 300 amazing sessions, and we're ready to add your talk to that legacy. We're seeking presentations for all skill levels, from Drupal beginners to advanced users to end users and business professionals!

For full submission details and guidelines, visit: midcamp.org/events/2026/how-submit-session

Key Dates
  • Call for Proposals Opened: February 10, 2026
  • Proposal Deadline: February 26, 2026
  • Speakers Notified: Week of April 2026
  • MidCamp Sessions: May 12-13, 2026
Sponsor MidCamp

Looking to connect with the Drupal community? Sponsoring MidCamp is the way to do it! Whether you're recruiting talent, growing your brand, or simply supporting the Drupal ecosystem, MidCamp sponsorship offers great value. Act early to maximize your exposure!

Stay in the Loop

Ready to submit your session? Click away and let's make MidCamp 2026 unforgettable!

The Drop Times: The Web Is Losing Its Accent

Drupal Planet -

Readers can often recognise a publication before noticing its logo. A local newspaper has its own character, a university speaks with the authority of its researchers, and a community organisation reflects the people and places it represents. Those differences are part of what makes the web interesting. Yet a survey of 1,000 U.S. adults, conducted by Dynata and published by content-quality software company Markup AI in November 2026, found that 73.3% had noticed brands' content and messaging becoming more similar as companies adopted artificial intelligence. The survey measures perceptions, not the causes of that similarity. Still, it raises an interesting question. When everyone has access to tools that produce polished writing, what happens to the distinctive voices that make websites worth visiting?

The concern goes beyond how brands sound. Research published by Pew Research Center in August 2026 found signs of AI writing or substantial editing in more than a third of sampled English-language pages published after ChatGPT's launch. The estimate relies on AI detection, which can misclassify content, and does not represent the entire web. Separately, a Gartner survey found that 57% of surveyed U.S. consumers said AI-generated marketing content had made them less trusting of brand messaging. None of this means AI-assisted writing is necessarily poor. It does suggest that producing more words and earning a reader's trust are two different things. Perhaps the question publishers should be asking is not how much more they can produce, but what makes their work worth reading.

For Drupal and the wider open-source community, that question has practical consequences. Drupal already provides tools for multilingual publishing, revision management and editorial oversight. Its emerging AI ecosystem adds new possibilities, including Context Control Center, which supplies site-specific instructions to AI agents, and AI Content Review, which evaluates content against editorial rules, though its alpha release has important limitations. These tools can support consistency and review, but they cannot decide what an organisation should stand for or which stories deserve attention. That responsibility remains with people. A style guide can help preserve a voice, but it cannot create the perspective behind it. The real opportunity for publishers is to use AI without surrendering the editorial judgment that gives their work meaning.

Perhaps this is what the next chapter of the open web will demand. Not less technology, but a clearer sense of why people publish in the first place. AI can help smaller organisations communicate across languages, make publishing more accessible and give more people the means to participate. Those are possibilities worth protecting. But a community's experiences, a writer's curiosity and an editor's willingness to question what appears on a page cannot be reduced to producing content faster. The value of a website has never rested entirely on the number of words it contains. As those words become easier to generate, a recognisable human perspective may become even more valuable. The question is no longer whether everyone can have a voice on the web. It is whether we will still recognise those voices when we hear them.

Follow The DropTimes on LinkedIn and Bluesky, or join #thedroptimes on Drupal Slack.

Kazima Abbas wrote and curated this issue of Editor’s Pick.

Salsa Digital: Drupal AI Context — second release candidate available

Drupal Planet -

Drupal AI Context tagged its second release candidate, live on stage at BADCamp, bringing Context Control Center one step away from a stable 1.0 release. This phase focused on a full security and privacy review, token budgets and selection, accessibility and administration, and upgrade readiness. It also celebrates community integrations with AI CKEditor, AI Validations and AI Translate, and looks ahead to sharing context with AI agents outside Drupal.

Pages

Subscribe to www.hazelbecker.com aggregator