Simpletest creates a complete Drupal installation and for each test runs in a completely new Drupal instance. Right?

Comments

chi’s picture

Status: Active » Needs review
Issue tags: +Needs backport to D7
StatusFileSize
new617 bytes

for each test runs in a completely new Drupal instance

It's not about UnitTestBase tests.

cameron tod’s picture

Status: Needs review » Reviewed & tested by the community

Manual local testing: from web interface, block module disabled.

Before patch:

Test the template_preprocess_block() function.
0 passes, 19 fails, and 0 exceptions
The test did not complete due to a fatal error.	Completion check	BlockTemplateSuggestionsUnitTest.php	28	Drupal\block\Tests\BlockTemplateSuggestionsUnitTest->testBlockThemeHookSuggestions()	
Call to undefined function Drupal\block\Tests\template_preprocess_block()

After patch, 3 passes, 0 fails, 0 exceptions, and everything is looking great.

catch’s picture

Status: Reviewed & tested by the community » Needs work

This should be able to use DrupalUnitTestBase now.

chi’s picture

Status: Needs work » Needs review
StatusFileSize
new1.04 KB
benjy’s picture

Status: Needs review » Closed (works as designed)

This no longer seems to be an issue against D8 HEAD.