Problem/Motivation

The StackKernelIntegrationTest does not detect when something goes wrong within the call to handle().

Proposed resolution

Set the optional $catch argument of handle() to FALSE. Then fix the test.

Alternatively it would be possible to just assert that the status code of the response is 200.

Remaining tasks

User interface changes

API changes

Follow-up to #2303673: Implement stackphp; cleanup handlePageCache() and preHandle()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

znerol’s picture

Status: Fixed » Needs review
Issue tags: -TCDrupal 2014, -Drupalaton 2014, -Needs issue summary update +stackphp
FileSize
1.05 KB

Status: Needs review » Needs work

The last submitted patch, 1: 2347111-stack-kernel-integration-test-is-bogus.diff, failed testing.

znerol’s picture

Status: Needs work » Active

The test failure in #1 demonstrates whats wrong with the test.

znerol’s picture

Status: Active » Needs review
FileSize
1.25 KB

Seems like system.timezone is the only route in the system module which can be accessed without authentication and without triggering storage/cache. This looks rather brittle though. Anyone has a better idea?

znerol’s picture

Let's just add a mock-controller in the httpkernel_test module.

Fabianx’s picture

Status: Needs review » Reviewed & tested by the community

Looks great to me! :)

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 5: 2347111-stack-kernel-fix-integration-test-5.diff, failed testing.

Fabianx’s picture

Issue tags: +Needs reroll, +Amsterdam2014

Probably needs a reroll ...

Crell’s picture

Status: Needs work » Reviewed & tested by the community

Testbot hiccuped last night, so re-RTBCing and testing. Bot will bump it back if necessary.

Fabianx’s picture

Issue tags: -Needs reroll
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 5f1d08d and pushed to 8.0.x. Thanks!

  • alexpott committed 5f1d08d on 8.0.x
    Issue #2347111 by znerol: StackKernelIntegrationTest is not testing a...

Status: Fixed » Closed (fixed)

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