Adding assertNotNull()
+++ b/core/modules/block_content/tests/src/Function...

Contribution Date
Technology
Contribution Project
Contribution Details

Adding assertNotNull()

+++ b/core/modules/block_content/tests/src/Functional/BlockContentTypeTest.php @@ -82,11 +85,15 @@ public function testBlockContentTypeCreation() { - $this->assertTrue(isset($field_definitions['body']), "Body field for 'basic' block type created when using the testing API to create block content types."); + // Verify that body field for 'basic' block type created when using the + // testing API to create block content types. + $this->assertArrayHasKey('body', $field_definitions);

as suggested at #43.

Contribution Author
Files count
2
Patches count
1