Skip to content

Commit

Permalink
Issue #164. Modify vocab test to account for core changes
Browse files Browse the repository at this point in the history
Fixes #164
  • Loading branch information
argiepiano committed Sep 24, 2023
1 parent 85fc87a commit 0a121a4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/entity_plus.test
Original file line number Diff line number Diff line change
Expand Up @@ -496,8 +496,12 @@ class EntityPlusMetadataTestCase extends EntityPlusHelperTestCase {

// Save vocabulary with wrapper save method.
$vocabulary_wrapper->save();
// Remove 'original' to allow comparison
unset($vocabulary->original);

// Assign NULL to 'original' to allow comparison.
// Note: after https://github.com/backdrop/backdrop-issues/issues/6197, all
// vocabulary objects contain an `original` property with a null value
// by default.
$vocabulary->original = NULL;
$vocabulary2 = taxonomy_vocabulary_load($machine_name);
$this->assertEqual($vocabulary2, $vocabulary, 'Vocabulary was saved correctly.');

Expand Down

0 comments on commit 0a121a4

Please sign in to comment.