Problem/Motivation

There is a test failure in Node creation test on PostgreSQL.

The issue is that PostgreSQL doesn't support bytea LIKE queries, so we need to unserialize first to check for the rollback exception message.

Problematic code:

testFailedPageCreation()

  $records = db_query("SELECT wid FROM {watchdog} WHERE variables LIKE '%Test exception for rollback.%'")->fetchAll();
  $this->assertTrue(count($records) > 0, 'Rollback explanatory error logged to watchdog.');

This was fixed in Drupal8 7 years ago, see: #2443665: PostgreSQL: Fix node\Tests\NodeCreationTest

Steps to reproduce

Run Node / Node creation tests.

Proposed resolution

Backport #2443665: PostgreSQL: Fix node\Tests\NodeCreationTest

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

poker10 created an issue. See original summary.

  • mcdruid committed 4446ec9 on 7.x
    Issue #3264353 by poker10: NodeCreationTestCase fails on PostgreSQL
    
mcdruid’s picture

Status: Needs review » Fixed

Thank you!

Status: Fixed » Closed (fixed)

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