Skip to content
Snippets Groups Projects
Commit 0eeec0d3 authored by Hennadii Panasiuk's avatar Hennadii Panasiuk Committed by Sascha Grossenbacher
Browse files

Issue #3153816 by gena.io: Replace assertions involving calls to empty() with...

Issue #3153816 by gena.io: Replace assertions involving calls to empty() with assertEmpty()/assertNotEmpty()/assertArrayNotHasKey()
parent 0df649f8
No related branches found
No related tags found
No related merge requests found
......@@ -101,10 +101,10 @@ class DefaultContentTest extends BrowserTestBase {
$terms = \Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadMultiple();
$term = reset($terms);
$this->assertTrue(!empty($term));
$this->assertNotEmpty($term);
$this->assertEquals($term->name->value, 'A tag');
$term_id = $node->field_tags->target_id;
$this->assertTrue(!empty($term_id), 'Term reference populated');
$this->assertNotEmpty($term_id);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment